Runqueue Studio

CPU scheduling lab.

Give four schedulers the same workload. Follow each handoff and see what it costs in waiting time.

Workload

Process arrival times and CPU bursts, in ticks
ProcessArrivalBurstRemove
ticks

Execution timelines

Hover or focus a time slice to inspect it.

Policy comparison

PolicyMean waitMean responseMean turnaroundSwitchesPreemptions
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.

QuantumMean responseMean waitPreemptions

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.

PolicyFirst different dispatchMoved job finishPeer shifts (ticks)

Process breakdown

ProcessFinishWaitResponseTurnaround
Dispatch handoffs
TickFromToCause

Response ends at the first CPU tick a process receives. Turnaround ends at completion. Wait counts all time spent ready for the CPU.