CS FundamentalsHardGATE

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 movement (in cylinders) under SSTF (Shortest Seek Time First)?

  1. A. 224
  2. B. 214
  3. C. 330
  4. D. 300

Correct answer: B. 214

SSTF always jumps to the pending request nearest the current head position. Walking the list this way, the head covers 214 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

Exams that ask this topic