Home▸Computer Science▸Hard-Disk Scheduling: Top View and Head Path (2D)

Hard-Disk Scheduling: Top View and Head Path (2D)

The same drive seen from above: rings mark the tracks of waiting requests and the arm swings over them, while a second chart draws the head path through the cylinders step by step for the chosen rule, with the travel and service time of all four algorithms side by side.

Computer Science2DModerate60 FPS📱 Mobile-adapted🟠 Blender⇄ 3D version
Hard-Disk Scheduling: Top View and Head Path (2D) ↗ Open standalone

A hard drive serves a queue of read and write requests with a single moving arm, so the order matters. Pick FCFS, SSTF, SCAN or C-SCAN, load the textbook queue 98, 183, 37, 122, 14, 124, 65, 67 with the head at cylinder 53 or a seeded random queue, and watch a Blender-modelled drive with three platters swing its arm over the requested tracks. Read the total head travel, the seek, rotational and transfer times and the service time, compare all four rules on the graphs, and see the true minimum travel confirmed by trying every possible order of a small queue.

⚙ Under the hood

The same drive seen from above: rings mark the tracks of waiting requests and the arm swings over them, while a second chart draws the head path through the cylinders step by step for the chosen rule, with the travel and service time of all four algorithms side by side.

Disk schedulingSSTFSCANC-SCANOperating systemsSeek time

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

What did you find?

Add reproduction steps (optional)