CS FundamentalsHardGATE CS · Amazon/Microsoft SDE MCQ

Disk cylinders 0–199; the head is at 120 moving toward 199; requests: 10, 22, 20, 2, 40, 6, 38. Counting the return jump as head movement, what is the total head movement under SSTF and under C-LOOK?

  1. A. 118 and 156
  2. B. 118 and 118
  3. C. 156 and 118
  4. D. 276 and 156

Correct answer: A. 118 and 156

SSTF visits 40, 38, 22, 20, 10, 6, 2: 80 + 2 + 16 + 2 + 10 + 4 + 4 = 118. C-LOOK, moving up, finds nothing above 120, so it jumps to 2 (118) and sweeps up to 40 (38): 156.

More Operating Systems questions

Exams that ask this topic