CS FundamentalsHardGATE CS · Amazon/Microsoft SDE MCQ
Disk cylinders 0–199; the head is at 50 and the queue holds 82, 170, 43, 140, 24, 16, 190. What is the total head movement under SSTF?
- A. 174
- B. 208
- C. 314
- D. 234
Correct answer: B. 208
SSTF serves 43 (7), 24 (19), 16 (8), then must cross to 82 (66), 140 (58), 170 (30), 190 (20): 208 cylinders. Going up first gives the LOOK figure of 314.
More Operating Systems questions
- Disk cylinders 0–199; the head is at 50 moving toward higher cylinders; the queue holds 82, 170, 43, 140, 24, 16, 190. Counting the return…
- How many times is x printed? (Every fork() succeeds, and each print is an unbuffered write, so nothing is printed twice through copied…
- Which values are printed (in some order)? (Every fork() succeeds, and each print is an unbuffered write, so nothing is printed twice…
- How many numbers are printed in total, and what is their sum? (Every fork() succeeds, and each print is an unbuffered write, so nothing is…
- What is the sum of all values printed? (Every fork() succeeds, and each print is an unbuffered write, so nothing is printed twice through…
- Semaphores s = 2 and t = 0. T1 runs twice: wait(s); print('a'); signal(t). T2 runs twice: wait(t); print('b'); signal(s). Which outputs…