Chapter 5 · SimulationCPU Scheduling? ← Chapter 5 FCFS SJF SRTF Priority P-Priority RR Speed 2/s Scenario Example Short jobs Priority clash RR example Random Quantum 2 CompareNot arrivedReady queueCPUDone Time 0/0 ✓ Done 0/0 Avg W – Avg TAT – Avg R – CloseCPU SchedulingAs processes move through the Not arrived, ready queue, CPU and Done areas, the Gantt chart grows by one time unit per step. When a process finishes, the table on the right shows its waiting (W), turnaround (TAT) and response (R) times, with the averages below.UsagePick an algorithm and a scenario, or edit the process table directly (name, arrival, CPU burst, priority; + adds a process up to 8, × removes one).▶ plays; the step buttons move one time unit back or forward, or jump to the start or end. Speed sets the number of time units per second.The time quantum is the time round robin gives each process per turn (1–10).Compare runs all six algorithms on the same processes and tries RR quanta from 1 to 6; clicking an algorithm there switches to it.AlgorithmsFCFSRuns processes to completion in arrival order.SJFShortest CPU burst among arrived processes; no preemption.SRTFShortest remaining time; a new arrival can preempt the running process.PrioritySmallest number first; no preemption.P-PriorityPreemptive priority: a higher-priority arrival preempts the running process.RROne quantum per turn, then to the back of the queue.TiesEarlier arrival first, then table order. RR: new arrivals enter the queue before the preempted process.MetricsTATTurnaround time = completion − arrivalWWaiting time = turnaround − CPU burstRResponse time = first run − arrivalLegend arrival waiting running ✓ done preemptedKeys←→ stepSpace playHomeEndEsc close