Developer Tools

Process Scheduler

Visualize CPU scheduling algorithms with Gantt charts. Compare FCFS, SJF, SRTF, Round Robin, and Priority scheduling.

Algorithm

FCFS (First Come First Served)

Processes
ProcessArrival TimeBurst Time
Gantt Chart
P1
P2
P3
P4
0
6
10
18
20
ResultsAvg Turnaround: 12.00Avg Waiting: 7.00
ProcessArrivalBurstCompletionTurnaroundWaiting
P106660
P2141095
P32818168
P432201715
Average12.007.00
Algorithm Reference

FCFS

Processes run in order of arrival. Simple, no starvation, but can cause convoy effect.

SJF (Non-Preemptive)

Picks the shortest job from ready queue. Optimal average waiting time but can starve long jobs.

SRTF (Preemptive SJF)

Preempts current process if a shorter one arrives. Best average waiting time, most context switches.

Round Robin

Each process gets a fixed time quantum. Fair, good response time, quantum affects performance.

Priority

Lower number = higher priority. Non-preemptive. Can cause starvation of low-priority processes.

Formulas

Turnaround = Completion − Arrival

Waiting = Turnaround − Burst

🔒 Dieses Tool läuft vollständig in Ihrem Browser. Es werden keine Daten an einen Server gesendet.