HomeComputer ScienceDisk Scheduling: FCFS, SSTF, SCAN & C-SCAN

Disk Scheduling: FCFS, SSTF, SCAN & C-SCAN (2D)

Interactive 2D disk-scheduling simulator: watch a hard-disk read/write head sweep across a cylinder track under FCFS, SSTF, SCAN and C-SCAN, with a live seek-distance readout and a side-by-side comparison chart of all four algorithms on the same request queue.

Computer Science2DModerate60 FPS📱 Mobile-adapted⇄ 3D version
2d-operating-systems ↗ Open standalone

Every operating system keeps a queue of pending disk I/O requests, and the order it services them in is governed by a disk-scheduling algorithm — one of the classic mechanisms an OS kernel uses to turn "what the programs asked for" into "what the hardware actually does." This 2D simulator draws a real cylinder track as a number line: a read/write head sweeps toward a queue of pending requests under First-Come-First-Served, Shortest-Seek-Time-First, SCAN or C-SCAN, servicing each request in the algorithm's genuinely computed order. Switch algorithms on the same request queue to see how total head movement — and therefore total seek time — changes, watch requests turn from pending amber to serviced green as the head reaches them, read live total and average seek-length numbers as the sweep runs, and use Compare mode to see all four algorithms' real total-distance results on the same queue, side by side in a bar chart.

⚙ Under the hood

Watch a hard-disk read/write head sweep across cylinders under FCFS, SSTF, SCAN, C-SCAN and LOOK scheduling policies, with a live seek-pattern graph and total/average seek-distance readouts.

operating systemsdisk schedulingSCANSSTFkernelalgorithms

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)