Disk Scheduling Algorithms: FCFS, SSTF, SCAN, C-SCAN, LOOK and C-LOOK
Learn how hard-disk scheduling algorithms order requests, how to draw the head movement chart and how to calculate total seek distance step by step.

Disk Scheduling Algorithms: FCFS, SSTF, SCAN, C-SCAN, LOOK and C-LOOK
On a hard disk, data is read by a head on an arm that moves between cylinders. Moving the arm (seeking) is slow, so when many requests are waiting, the order in which they are served makes a big difference. Disk scheduling questions give a queue of cylinder numbers, a starting head position and sometimes a direction, and ask for the total head movement. This guide explains each algorithm with the standard textbook example, and you can draw the same charts with the free disk scheduling simulator.
The example
Disk cylinders 0 to 199, head at 53, queue: 98, 183, 37, 122, 14, 124, 65, 67.
Total head movement is the sum of the distances between consecutive positions. Always write the order first, then add the gaps.
FCFS: first come, first served
Serve requests in the order given:
53 → 98 → 183 → 37 → 122 → 14 → 124 → 65 → 67
Distances: 45 + 85 + 146 + 85 + 108 + 110 + 59 + 2 = 640.
Fair, but the head zig-zags wastefully.
SSTF: shortest seek time first
Always go to the closest pending request:
53 → 65 → 67 → 37 → 14 → 98 → 122 → 124 → 183
Total 236. Much better, but a request far from a busy area can wait indefinitely (starvation).
SCAN: the elevator
Move in one direction, serving requests, all the way to the end of the disk, then reverse. Moving towards 0:
53 → 37 → 14 → 0 → 65 → 67 → 98 → 122 → 124 → 183
Total: 53 to 0 is 53, then 0 to 183 is 183, so 236.
C-SCAN: circular SCAN
Serve in one direction only. When the head reaches the end, it returns to the other end without serving and sweeps again in the same direction. Moving up:
53 → 65 → 67 → 98 → 122 → 124 → 183 → 199 → 0 → 14 → 37
Movement: 146 up to 199, 199 back to 0, and 37 from 0 to 37.
- Counting the return jump: 382
- Not counting it: 183
Textbooks differ, so the simulator shows both. C-SCAN gives more uniform waiting times than SCAN, because cylinders at both edges are visited equally often.
LOOK and C-LOOK
LOOK is SCAN that turns around at the last request instead of the disk edge. Moving up:
53 → 65 → 67 → 98 → 122 → 124 → 183 → 37 → 14
Total: 130 + 169 = 299.
C-LOOK jumps from the last request in one direction to the first request at the other end: 53 → … → 183 → 14 → 37, total 322 including the jump from 183 to 14.
Which is best?
For this queue SSTF and SCAN tie at 236 and FCFS is worst at 640. In general:
- SSTF and LOOK give low totals under light load.
- SCAN, C-SCAN and C-LOOK behave well under heavy load and avoid starvation.
- C-SCAN/C-LOOK give the most predictable waiting times.
The simulator's compare tab runs all six on your queue and highlights the lowest total.
Why seek distance matters
On a typical hard disk, moving the head across the platter takes several milliseconds, while reading the data once the head is in place takes far less. A processor can execute millions of instructions in that time, so a scheduler that halves total head movement can noticeably speed up a busy server. That is why operating systems keep a queue of pending requests and reorder it instead of serving them strictly in arrival order. Measuring the total in cylinders, as these exercises do, is a simple stand-in for that time.
Exam tips
- State the direction for SCAN, C-SCAN, LOOK and C-LOOK; the answer depends on it.
- Include the end cylinder (0 or 199) in SCAN and C-SCAN paths but not in LOOK paths.
- Say whether your C-SCAN total includes the return jump.
- Show the sum of distances, not just the final number.
Limits
These models count cylinder distance only. Real drives also wait for the disk to rotate, and their firmware reorders requests itself. Solid-state drives have no moving head, so seek order matters little for them; the algorithms remain important for understanding scheduling trade-offs.


