CS FundamentalsHardProduct company interview · GATE level
A disk has cylinders 0–199 and the head is at cylinder 53. Pending requests: 98, 183, 37, 122, 14, 124, 65, 67. What is the total head movement (in cylinders) under SSTF (Shortest Seek Time First)?
- A. 331
- B. 299
- C. 246
- D. 236
Correct answer: D. 236
SSTF always jumps to the pending request nearest the current head position. Walking the list this way, the head covers 236 cylinders in total. SCAN from this head, moving up, instead covers 331, 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 53, moving towards cylinder 199. Pending requests: 98, 183, 37, 122, 14, 124, 65…
- A disk has cylinders 0–199 and the head is at cylinder 53, moving towards cylinder 199. Pending requests: 98, 183, 37, 122, 14, 124, 65…
- A disk has cylinders 0–199 and the head is at cylinder 76. Pending requests: 45, 130, 12, 180, 90, 150, 60, 170. What is the total head…
- A disk has cylinders 0–199 and the head is at cylinder 76, moving towards cylinder 0. Pending requests: 45, 130, 12, 180, 90, 150, 60…
- A disk has cylinders 0–199 and the head is at cylinder 76, moving towards cylinder 0. Pending requests: 45, 130, 12, 180, 90, 150, 60…
- A disk has cylinders 0–199 and the head is at cylinder 50. Pending requests: 55, 58, 39, 18, 90, 160, 150, 38, 184. What is the total head…