FIFO ready queue
A process enters at the rear and leaves from the front. An unfinished process returns to the rear after its quantum expires.
Round Robin is a preemptive CPU scheduling algorithm. Processes wait in a FIFO ready queue. Each process receives at most one time quantum. If it does not finish, it returns to the rear of the queue.
Add a process or load the example workload.
| Process | Burst | Remaining | Completion | Turnaround | Waiting |
|---|
A process enters at the rear and leaves from the front. An unfinished process returns to the rear after its quantum expires.
A small quantum improves responsiveness but increases context-switch overhead. A large quantum makes Round Robin behave more like First-Come, First-Served.
Turnaround time is completion time − arrival time. In this simulator, all
added processes arrive at the current scheduler time.
Waiting time is turnaround time − burst time. It measures how long a process
spent waiting rather than executing.
| Step | Action |
|---|---|
| 1 | Dequeue the process at the front of the ready queue. |
| 2 | Execute it for min(quantum, remaining time). |
| 3 | If it finishes, record completion and timing metrics. |
| 4 | Otherwise, enqueue it again at the rear. |