CS FundamentalsHardProduct company interview · GATE level

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

  1. A. 316
  2. B. 294
  3. C. 288
  4. D. 278

Correct answer: D. 278

SSTF always jumps to the pending request nearest the current head position. Walking the list this way, the head covers 278 cylinders in total. SCAN from this head, moving up, instead covers 316, since it must travel to the end of the disk first.

More Operating Systems questions

Exams that ask this topic