CS FundamentalsHardProduct-company MCQ pattern

Cylinders 0–199, head at 72 currently moving towards cylinder 0. Requests: 110, 25, 160, 47, 130, 8, 95, 185. Under SCAN, what is the total head movement?

  1. A. 257 cylinders
  2. B. 318 cylinders
  3. C. 241 cylinders
  4. D. 290 cylinders

Correct answer: A. 257 cylinders

Down: 47, 25, 8 then on to cylinder 0 (72 cylinders), then up to 95, 110, 130, 160, 185 (185 cylinders). Total = 72 + 185 = 257. Turning at 8 instead of 0 is LOOK and gives 241; 318 is SCAN in the upward direction.

More Operating Systems questions

Exams that ask this topic