CS FundamentalsHardDeloitte · IBM campus pattern
A disk has cylinders 0–199 and the head is at cylinder 60. Pending requests: 34, 197, 8, 120, 76, 160, 44, 105. What is the total head movement (in cylinders) under SSTF (Shortest Seek Time First)?
- A. 318
- B. 326
- C. 330
- D. 336
Correct answer: B. 326
SSTF always jumps to the pending request nearest the current head position. Walking the list this way, the head covers 326 cylinders in total. SCAN from this head, moving up, instead covers 330, since it must travel to the end of the disk first.
More Operating Systems questions
- A disk has cylinders 0–199 and the head is at cylinder 60, moving towards cylinder 199. Pending requests: 34, 197, 8, 120, 76, 160, 44…
- A disk has cylinders 0–199 and the head is at cylinder 60, moving towards cylinder 199. Pending requests: 34, 197, 8, 120, 76, 160, 44…
- A disk has cylinders 0–199 and the head is at cylinder 90. Pending requests: 15, 45, 75, 105, 135, 165, 30, 195. What is the total head…
- A disk has cylinders 0–199 and the head is at cylinder 90, moving towards cylinder 0. Pending requests: 15, 45, 75, 105, 135, 165, 30…
- A disk has cylinders 0–199 and the head is at cylinder 90, moving towards cylinder 0. Pending requests: 15, 45, 75, 105, 135, 165, 30…
- A disk has cylinders 0–199 and the head is at cylinder 70. Pending requests: 12, 78, 145, 33, 167, 92, 56, 188. What is the total head…