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?
- A. LOOK: 398 against SSTF's 418
- B. SSTF: 418 against LOOK's 446
- C. SSTF: 391 against LOOK's 398
- 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
- A disk spins at 7200 RPM, has an average seek of 6 ms and 500 sectors of 512 bytes per track. A 1 MB file is read as 256 blocks of 4 KB…
- A Unix-style inode has 12 direct pointers, one single-indirect and one double-indirect pointer; blocks are 4 KB and block pointers 4…
- Six 4 TB disks are to be combined. Which layout survives ANY two simultaneous disk failures, and what usable capacity does it give?
- A 1 MB region uses the buddy system. Requests arrive for A = 70 KB, B = 35 KB and C = 80 KB. What is the total internal fragmentation, and…
- Free holes, in address order, are 150, 400, 250, 600 and 300 KB. Requests for 280, 200, 350 and 290 KB arrive in that order. Which…
- A segment table has: segment 0 base 1200, limit 500; segment 1 base 3000, limit 150; segment 2 base 800, limit 300. Which logical address…