📄 Passage
Consider the following disc Queue with requests for I/O to block on cylinders:
45, 81, 185, 33, 175, 99, 150, 77
(Consider that the head starts from location 58)
What shall be the total head movement of cylinders if the FCFS disc scheduling method is used?
Solution
Given:
Request queue (arrival order): 45, 81, 185, 33, 175, 99, 150, 77
Initial head position: 58
Policy: FCFS (First-Come, First-Served) → service strictly in the order listed.
Step-by-step head movements
Compute the absolute distance for each hop, starting at 58 and following the queue:
45 → 81 → 185 → 33 → 175 → 99 → 150 → 77
Starting from 58, movement should be: 58 → 45 → 81 → 185 → 33 → 175 → 99 → 150 → 77
Step-by-step movement
| Movement |
Distance |
| 58 → 45 |
13 |
| 45 → 81 |
36 |
| 81 → 185 |
104 |
| 185 → 33 |
152 |
| 33 → 175 |
142 |
| 175 → 99 |
76 |
| 99 → 150 |
51 |
| 150 → 77 |
73 |
Total Head Movement13+36+104+152+142+76+51+73=647
✅ Answer: 647 cylinders