CS FundamentalsVery hardIBM · Deloitte pattern

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

  1. A. 255
  2. B. 325
  3. C. 315
  4. D. 285

Correct answer: C. 315

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

More Operating Systems questions

Exams that ask this topic