Computer Systems and OS

Context Switching Simulator

Watch the CPU switch between processes. Adjust time slices and I/O waits to compare CPU efficiency and scheduling overhead.

Choose what you want to see

No setup is required. Pick a scenario and press Start.

Balanced: 5 processes share the CPU with a 4 ms time slice.

Advanced settings — optional
Watch the CPU

Live process movement

Follow the highlighted process as it gets a turn on the CPU.

Ready
i
Ready to begin Press Start simulation above. You can pause or move one event at a time.
WAITING FOR A TURN 0 processes

These processes are ready. The first one will run next.

NOW USING THE CPU
—
IDLE
Time slice —
COMPLETED 0 finished

Finished processes no longer need CPU time.

1. Save current process → 2. Choose next process → 3. Load and continue