A CPU Scheduler emulation in Java for CS215