public int doSuspend(int pid) {
		try {
			MigratableProcess p = processList.get(pid);
			p.suspend();
			serialize(p, pid);
			activeProcess.remove((Integer) pid);
			suspendedProcess.add(pid);
			slaveThread.remove(pid);

			return 1;
		} catch (Exception e) {
			System.out.println(e.getMessage());
			e.printStackTrace();
			return -1;
		}
	}