CPU scheduling lab.
Give four schedulers the same workload. Follow each handoff and see what it costs in waiting time.
Workload
Execution timelines
Hover or focus a time slice to inspect it.
Policy comparison
| Policy | Mean wait | Mean response | Mean turnaround | Switches | Preemptions |
|---|
Round Robin time-slice sweep
Select a quantum to apply it to the last submitted workload. Each row reruns Round Robin with the same arrivals and CPU bursts.
| Quantum | Mean response | Mean wait | Preemptions |
|---|
Means are in ticks. A switch transfers the CPU directly between different processes. A preemption is a switch away from an unfinished process.
Arrival ripple
Move one arrival in the last completed workload. Compare the first changed CPU owner and which other processes finish earlier or later.
| Policy | First different dispatch | Moved job finish | Peer shifts (ticks) |
|---|
Process breakdown
| Process | Finish | Wait | Response | Turnaround |
|---|
Dispatch handoffs
| Tick | From | To | Cause |
|---|
No direct handoffs for this workload.
Response ends at the first CPU tick a process receives. Turnaround ends at completion. Wait counts all time spent ready for the CPU.