CS FundamentalsEasyGATE CS (PYQ pattern)
The head is at cylinder 100 with pending requests 55, 58, 39, 18, 90, 160, 150, 38 and 184 (cylinders 0 to 199; no new requests arrive). Under SSTF, with ties broken towards the lower cylinder, which position (1 = first) in the service order does cylinder 160 occupy?
- A. 9
- B. 7
- C. 8
- D. 10
Correct answer: C. 8
SSTF service order is [90, 58, 55, 39, 38, 18, 150, 160, 184]; cylinder 160 is the 8th request served.
More Operating Systems questions
- A machine uses 4-level paging, a TLB (10 ns lookup, done before every access) and 100 ns memory. On a TLB miss the walk first consults a…
- Memory access takes 200 ns. A page fault takes 8 ms if the victim page is clean and 20 ms if it must first be written back; 60% of victim…
- Free memory consists of three holes (start, size in KB): (0, 300), (400, 200), (700, 500); everything else is allocated. Operations in…
- On a Unix file system with an empty directory /tmp/x (call it X), these commands run: mkdir X/a; mkdir X/a/b; mkdir X/a/c; touch X/a/f; ln…
- A process has 4 threads on a single CPU. Each thread computes for 10 ms, makes a blocking disk read that takes 30 ms, then computes for…
- A 4-level x86-64 style page table maps 4 KB pages through all four levels, 2 MB pages with the third-level entry as the leaf and 1 GB…