← 🖧 Computer Networks

🖥️ CPU Scheduler

Avg wait time:
Avg turnaround:
CPU utilization:
Sim clock:
FPS:
Drag — rotate · Scroll — zoom

🖥️ CPU Scheduling Policies: FCFS, SJF, Priority and Round Robin

A fixed batch of processes with random arrival times and CPU burst lengths is replayed on a live 3D timeline, letting you swap between FCFS, SJF, Priority and Round Robin scheduling and watch queue order, wait time and turnaround time change for the exact same workload.

🔬 What It Demonstrates

Each policy chooses a different next process from the ready queue. The Gantt timeline reveals the resulting execution order live, and the stat panel shows how average wait and turnaround time shift, even though total CPU busy time stays the same.

🎮 How to Use

Pick an algorithm to instantly rebuild the timeline for the current workload. Adjust the Round Robin quantum, change how many processes are in the batch, or generate a brand-new random workload with 🎲.

💡 Did You Know?

Shortest Job First provably minimizes average waiting time for a fixed batch of jobs, but real schedulers rarely use it directly since a process's future burst length usually isn't known in advance — it has to be estimated.