CS FundamentalsVery hardGATE CS

Disk with 100 cylinders (0–99); head at 50 moving up. Requests arrive in two batches: first 30, 70, 90; when the head reaches 70, new requests 60 and 95 arrive. Under SCAN (to the end), what is the total head movement until all five are served?

  1. A. 110
  2. B. 118
  3. C. 98
  4. D. 149

Correct answer: B. 118

50 → 70 (20). With 95 now ahead and 60 behind, SCAN keeps going up through 90 and 95 to the last cylinder 99 (29 more), then reverses down past 60 to 30 (69). Total 20 + 29 + 69 = 118. LOOK would turn at 95 and total 110.

More Operating Systems questions

Exams that ask this topic