CS FundamentalsHardGATE CS

Cylinders 0–299; the head is at 140 and moving toward higher numbers. Requests: 45, 210, 160, 12, 275, 98, 130, 190. Which of SSTF and LOOK gives less total head movement here?

  1. A. LOOK: 398 against SSTF's 418
  2. B. SSTF: 418 against LOOK's 446
  3. C. SSTF: 391 against LOOK's 398
  4. D. SSTF: 418 against LOOK's 516

Correct answer: A. LOOK: 398 against SSTF's 418

SSTF goes 130, 160, 190, 210, 275, then all the way back to 98, 45, 12 = 418. LOOK sweeps up to 275 and back to 12: 135 + 263 = 398. 446 is SCAN (to 299), 516 is C-LOOK, and 391 comes from wrongly choosing 98 (32 away) over 160 (30 away) at 130.

More Operating Systems questions

Exams that ask this topic