CS FundamentalsVery hardGATE CS

Disk cylinders 0–199, head at 100 moving toward 0. Requests: 23, 89, 132, 42, 187, 9, 155, 61. Under C-SCAN moving DOWN (service while moving toward 0, then jump to 199 and continue downward), counting the jump as movement, what is the total distance?

  1. A. 366
  2. B. 167
  3. C. 324
  4. D. 287

Correct answer: A. 366

100 → 0 (100), jump 0 → 199 (199), then down to the lowest remaining request above 100, which is 132: 199 − 132 = 67. Total 366. Without counting the jump: 167.

More Operating Systems questions

Exams that ask this topic