← Back to the playground
ALGORITHM / 02

Every process gets a turn.

Round robin moves through a ready queue, giving each process at most one time quantum before the next takes over.

SINGLE CPU / V1.0

Your workload

3 PROCESSES
Simulation model

PROCESSTICKETSARRIVEBURST
◈ Saved on this device
Ready when you are0 / 64 decisions
TIME ELAPSED0 units
CPU BUSY0 units
DECISIONS0

Execution timeline

ONE BLOCK = ONE DISPATCH
⌁A schedule starts with a decision.Press Run or take it one step at a time.

Expected vs. observed

More rounds tell a clearer story.

Expected Observed

Every ticket is a chance at the next slice. Your observed share will take shape as the simulation runs.

Decision trace 0 dispatches+
Abstract time units · no context-switch overhead

How round robin works

Each runnable process joins a FIFO ready queue. The scheduler runs the first process for a quantum, or until its burst finishes. If it still needs CPU time, it returns to the back. Newly arriving processes join the queue before the process at the end of its current slice is requeued.

Try a quantum of two

For two processes arriving at time zero with bursts of four and two, the sequence is A from 0–2, B from 2–4, then A from 4–6. A completes at 6 and waits 2 time units. B completes at 4 and waits 2. Reducing the quantum changes the order and responsiveness. This model excludes context-switch overhead, so it cannot show the real cost of very small quanta.

Continuous versus finite

Continuous mode keeps every process runnable and demonstrates equal turns. Finite mode admits processes at their arrival times and removes them when their work finishes. Round robin ignores ticket weights in both modes. Compare it with lottery scheduling, where weights change the probability of receiving the next turn.

KEEP EXPLORINGUnderstand lottery scheduling ↗Lottery vs. round robin ↗Work through arrival times ↗