GATE | Operating Systems

OS Algorithm Visualizer

CPU Scheduling, Page Replacement, and more — step through every algorithm with animated visualizations built for GATE CS exam prep.

Algorithm

Choose a scheduling policy to simulate

Basic

Priority

Multi-Queue

Processes run strictly in order of arrival. Simple, but a long process at the front delays everything behind it (convoy effect).

Processes

4 processes

PIDArrivalBurstMode
t = 022

Gantt Chart

CPU, IO, normalized, and combined views

3 context switches
CPU Execution (Per-Unit)
22 blocks
P1
P1
P1
P1
P1
P2
P2
P2
P3
P3
P3
P3
P3
P3
P3
P3
P4
P4
P4
P4
P4
P4
0246810121416182022

Ready Queue

t=0 — 1 waiting

P15

CPU Status

P1

Executing P1

One process, one CPU — no context switch in progress.

Ready Queue

0

Empty

Incoming

3
P2 @ t=1P3 @ t=2P4 @ t=3

Completed

0

None yet

Live Statistics

Recomputed instantly for the selected algorithm

Avg Waiting

5.75

Avg Turnaround

11.25

Avg Response

5.75

Avg Completion

12.75

Scheduling Length

22units

Throughput

0.182/unit

CPU Utilization

100%

Context Switches

3

Idle Time

0units

Total Time

22units

PIDArrivalCPU BurstPriorityCTTATWTRT
P10525500
P21318744
P3283161466
P436422191313

Educational Log

Why the scheduler made each decision, revealed as the clock advances

t=0At t=0, Process P1 is selected — it is next in arrival order (arrived at t=0). Runs to completion at t=5.