- Asked 2/13
- 2075 Baisakh · 10 marks
Disk scheduling with 150 cylinders
Short answer
SSTF: 211, SCAN: 163, C-SCAN: 295, LOOK: 143, FCFS: 520 cylinders. LOOK yields the lowest head movement.
Suppose a disk drive with 150 cylinders numbered from 0-149. The drive is currently serving a request at 35 and previous request was at 120. The queue of pending request is 98, 103, 38, 122, 10, 128, 65, 75. Starting from the current head position, calculate the total head movement (in cylinder) that the disk arm moves to satisfy all the pending request for SSTF, SCAN, C-SCAN, LOOK and FCFS Disk Arm Scheduling Algorithm.
Cylinders 0–149, head at 35, previous request at 120. Since the head came from 120 to 35, it is moving towards lower cylinders. Queue = 98, 103, 38, 122, 10, 128, 65, 75.
1. SSTF
35 → 38 → 65 → 75 → 98 → 103 → 122 → 128 → 10
3 + 27 + 10 + 23 + 5 + 19 + 6 + 118 = 211
2. SCAN
Move down serving 10, go to 0, reverse, then serve the rest going up (the arm stops at 128, the last request, since nothing lies beyond).
35 → 10 → 0 → 38 → 65 → 75 → 98 → 103 → 122 → 128
25 + 10 + 38 + 27 + 10 + 23 + 5 + 19 + 6 = 163
3. C-SCAN
Move down to 0, jump to the other end (149), then continue downwards. The return jump is counted.
35 → 10 → 0 → 149 → 128 → 122 → 103 → 98 → 75 → 65 → 38
25 + 10 + 149 + 21 + 6 + 19 + 5 + 23 + 10 + 27 = 295
4. LOOK
Same as SCAN, but reverses at the last request (10), not at cylinder 0.
35 → 10 → 38 → 65 → 75 → 98 → 103 → 122 → 128
25 + 28 + 27 + 10 + 23 + 5 + 19 + 6 = 143
5. FCFS
35 → 98 → 103 → 38 → 122 → 10 → 128 → 65 → 75
63 + 5 + 65 + 84 + 112 + 118 + 63 + 10 = 520
Summary
| Algorithm | Head movement (cylinders) |
|---|---|
| SSTF | 211 |
| SCAN | 163 |
| C-SCAN | 295 |
| LOOK | 143 |
| FCFS | 520 |
Answer: SSTF = 211, SCAN = 163, C-SCAN = 295, LOOK = 143, FCFS = 520 cylinders. LOOK is the best.
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- Disk scheduling: FCFS, SSF, SCAN at 53 · Operating System, chapter 6 · asked 3×
- Disk scheduling with 100 cylinders · Operating System, chapter 6 · asked 2×
- Disk scheduling with 5000 cylinders · Operating System, chapter 6 · asked 2×
- Disk scheduling with 50 cylinders · Operating System, chapter 6
- Disk scheduling: FCFS, SSTF, SCAN, LOOK, C-SCAN · Operating System, chapter 6
- Disk scheduling, 1000 cylinders, head at 345 · Operating System, chapter 6
- Device driver; FCFS, SSF, SCAN numerical · Operating System, chapter 6 · asked 2×