Simulation of how a Real-Time Scheduler works