Disk scheduling practice
More request queues with answers, and a quiz.
Module 5
Session 5.2
Lesson 2 of 2
Disk scheduling practice
Choose an algorithm, enter a queue and watch the head move.
Disk schedulerEdit the inputs, press Run, then Step or Play.
Practice set — head at 50, cylinders 0–199, queue 82 170 43 140 24 16 190, moving toward 199
| Algorithm | Order | Total movement |
|---|---|---|
| FCFS | 82 170 43 140 24 16 190 | 642 |
| SSTF | 43 24 16 82 140 170 190 | 208 |
| SCAN | 82 140 170 190 199 43 24 16 | 332 |
| C-SCAN | 82 140 170 190 199 0 16 24 43 | 391 (including the return) |
| LOOK | 82 140 170 190 43 24 16 | 314 |
| C-LOOK | 82 140 170 190 16 24 43 | 341 (including the jump) |
Quick check
Which algorithm here gives the least head movement?
208 cylinders — but it can starve far requests.
LOOK beats SCAN here by…
SCAN travels 190 → 199 → 190 (18 extra cylinders).