CS FundamentalsVery hardGATE CS

Disk cylinders 0–199; head at 50, moving toward 199. Requests: 82, 170, 43, 140, 24, 16, 190. Under C-SCAN, counting the return sweep from 199 to 0 as head movement, what is the total distance moved?

  1. A. 192
  2. B. 341
  3. C. 391
  4. D. 332

Correct answer: C. 391

Up to 199: 149; jump 199 → 0: 199; then up to the highest pending lower request 43: 43. Total 391. Not counting the return gives 192; C-LOOK gives 341.

More Operating Systems questions

Exams that ask this topic