public int handleProcessEvent( ProcessEvent pEvent )
	{
		switch (pEvent.getKind())
		{
			case 1:	handleArrival(pEvent);
				break;
			case 2: handleTimeout(pEvent);
				break;
			case 3: handleIORequest(pEvent);
				break;
			case 4: handleIOServed(pEvent);
				break;
			case 5:	handleJobDone(pEvent);
				break;
		}
		//Do RoundRobin if there's something to run
		if(!this.readyQ.isEmpty() || !this.timeoutQ.isEmpty())
		{
			scheduleRoundRobin(pEvent);
		}
		
		return this.runningJob == null ? 0 : this.runningJob.pid;

	}