public int doLaunch(int pid) {
		try {
			MigratableProcess p = deSerialize(pid);
			Thread t = new Thread(p);
			t.start();
			processList.put(pid, p);
			activeProcess.add(pid);
			slaveThread.put(pid, t);
			return 1;
		} catch (Exception e) {
			System.out.println(e.getMessage());
			e.printStackTrace();
			return -1;
		}
	}