Lab
Disk scheduling lab
FCFS, SSTF, SCAN and LOOK: the path of the head and the total movement.
The disk and its queue
Cylinders are numbered from 0
Try
Path of the head
Total movement 640 cylinders
|98 − 53| = 45, |183 − 98| = 85, |37 − 183| = 146, |122 − 37| = 85, |14 − 122| = 108, |124 − 14| = 110, |65 − 124| = 59, |67 − 65| = 2
Total movement under each algorithm
The lowest is in green
| Algorithm | Total head movement |
|---|---|
| FCFS | 640 |
| SSTF (shortest seek first) | 236 |
| SCAN (elevator) | 331 |
| LOOK | 299 |