Live process movement
Follow the highlighted process as it gets a turn on the CPU.
These processes are ready. The first one will run next.
Finished processes no longer need CPU time.
Systems & OS
Watch the CPU save one process, select another, and restore its state. See how scheduler choices affect responsiveness and useful CPU time.
No setup is required. Pick a scenario and press Start.
Follow the highlighted process as it gets a turn on the CPU.
These processes are ready. The first one will run next.
Finished processes no longer need CPU time.
Switch blocks are time not spent on application work.
A process must resume exactly where it stopped. The operating system therefore records the small set of CPU and scheduling data that describes its current execution state.
The time quantum controls how long a process may keep the CPU in round-robin scheduling. There is no universally perfect value.
A process cannot usefully occupy the CPU while it waits for disk, network or user input. It moves to the Waiting state and another Ready process gets a turn.
A timer interrupt, an I/O request, completion or an explicit yield can give the scheduler a chance to choose another process.
This simulator is a deterministic conceptual model. Real operating systems also consider priorities, multiple CPU cores, cache effects, interrupts and scheduler-specific policies.