CS FundamentalsHardGATE CS (PYQ pattern)

The disk has cylinders 0 to 199. The head is at 100, moving towards higher cylinders. Pending requests: 23, 89, 132, 42, 187, 70, 12. SCAN goes to the last cylinder 199, reverses and serves the lower requests; C-SCAN goes to 199, jumps back to cylinder 0 (the jump counts as head movement) and then moves upward. What is the total head movement of C-SCAN minus that of SCAN?

  1. A. 387
  2. B. 286
  3. C. 101
  4. D. 189

Correct answer: C. 101

SCAN = (199 - 100) + (199 - 12) = 286; C-SCAN = (199 - 100) + 199 + 89 = 387 (after the jump it must climb to the highest low-side request, 89). Difference = 101.

More Operating Systems questions

Exams that ask this topic