CS FundamentalsHardProduct-company interview pattern

A disk has cylinders 0–199 and the head is at cylinder 100. Pending requests: 45, 130, 12, 180, 90, 150, 60. What is the total head movement under SSTF?

  1. A. 280
  2. B. 348
  3. C. 256
  4. D. 246

Correct answer: C. 256

From 100 the nearest is 90 (10), then 60 (30), 45 (15), 12 (33); now 130 is nearest (118), then 150 (20), 180 (30). Total 256. 280 is SCAN towards 0, which travels all the way to cylinder 0 before reversing.

More Operating Systems questions

Exams that ask this topic