Consider a disk system with cylinders. The requests to access the cylinders occur in following sequence:
Assuming that the head is currently at cylinder , what is the time taken to satisfy all requests if it takes to move from one cylinder to adjacent one and shortest seek time first policy is used?
View worked solution
Answer: B
In the Shortest Seek Time First (SSTF) disk scheduling algorithm, the request closest to the current head position is serviced next.
The set of pending requests is: {2, 4, 6, 7, 10, 15, 19, 20, 34, 73}
Starting from the initial head position at 50, the step-by-step head movement is as follows:
- 50 → 34: Seek distance =
- 34 → 20: Seek distance =
- 20 → 19: Seek distance =
- 19 → 15: Seek distance =
- 15 → 10: Seek distance =
- 10 → 7: Seek distance =
- 7 → 6: Seek distance =
- 6 → 4: Seek distance =
- 4 → 2: Seek distance =
- 2 → 73: Seek distance =
Now, we sum the individual seek distances to find the total head movement:
Given that it takes to move across one cylinder, the total time taken is:
Free practice · Your answers on this page are not saved.
