Simulating OS Process Scheduler