sistemi-e-reti sistemi-operativi

CPU Scheduling Simulator with I/O

What is CPU scheduling?

The CPU scheduler decides which process to run next and for how long. In this simulator you can compare six classic algorithms, including processes that perform I/O operations (disk, network) during their lifetime.

How to use the simulator

  1. Choose the algorithm from the drop-down menu
  2. Add processes by specifying arrival time, CPU burst and (optionally) an I/O interrupt
  3. Click Calculate scheduling to see the Gantt chart and metrics
⚡ Esercizio interattivo apri in finestra →

Available algorithms

AlgorithmTypeCharacteristic
FCFSNon-preemptiveArrival order
SJFNon-preemptiveShortest burst first
SRTFPreemptiveSJF with preemption
PriorityNon-preemptiveNumeric priority (1 = highest)
PriorityPreemptiveWith preemption
Round RobinPreemptiveFixed time quantum

Calculated metrics

  • Waiting time — time spent in the ready queue before being executed
  • Turnaround time — from arrival to completion
  • CPU utilization — percentage of time the CPU is not idle