Skip to main content

Disk scheduling: FCFS, SSF, SCAN at 53

Short answer

For head at 53 and queue 98,183,37,122,14,124,65,67, FCFS serves arrival order and moves 640 cylinders. SSTF order 53,65,67,37,14,98,122,124,183 moves 236; SCAN moving toward 0 first also moves 236 cylinders.

Suppose a disk drive with 200 cylinders numbered from 0 to 199. The drive is currently serving a request at 53. The queue of pending request is 98, 183, 37, 122, 14, 124, 65, 67. Starting from the current head position, calculate total head movement (in cylinder) that the disk arm moves to satisfy all the pending request for FCFS, SSF and SCAN disk scheduling algorithm.

Disk has 200 cylinders (0–199), head at 53, queue = 98, 183, 37, 122, 14, 124, 65, 67. Total head movement = sum of absolute differences between successive positions.

1. FCFS

Requests are served in arrival order.

53 → 98 → 183 → 37 → 122 → 14 → 124 → 65 → 67
MoveDistance
53 → 9845
98 → 18385
183 → 37146
37 → 12285
122 → 14108
14 → 124110
124 → 6559
65 → 672
Total640

2. SSF (Shortest Seek First / SSTF)

Always go to the nearest pending request.

53 → 65 → 67 → 37 → 14 → 98 → 122 → 124 → 183
MoveDistance
53 → 6512
65 → 672
67 → 3730
37 → 1423
14 → 9884
98 → 12224
122 → 1242
124 → 18359
Total236

3. SCAN (elevator)

Direction is not given, so assume the arm moves towards cylinder 0 first (as in Silberschatz), serves requests on the way, reverses at cylinder 0 and then moves up.

53 → 37 → 14 → 0 → 65 → 67 → 98 → 122 → 124 → 183
MoveDistance
53 → 3716
37 → 1423
14 → 014
0 → 6565
65 → 672
67 → 9831
98 → 12224
122 → 1242
124 → 18359
Total236

If the head instead moved towards 199 first, SCAN would give 53 → 65 → 67 → 98 → 122 → 124 → 183 → 199 → 37 → 14 = 331 cylinders.

Summary

AlgorithmTotal head movement
FCFS640
SSF (SSTF)236
SCAN (towards 0 first)236

Answer: FCFS = 640, SSF = 236, SCAN = 236 cylinders.

✓ Answer checked by Claude Opus 5.5 (high effort)

All Operating System chapter 6 questions →