CS FundamentalsHardGATE CS
Two-level paging, TLB lookup 5 ns, memory access 100 ns, TLB searched first. What minimum TLB hit ratio keeps the effective access time at or below 130 ns?
- A. 75%
- B. 85%
- C. 90%
- D. 87.5%
Correct answer: D. 87.5%
EAT = h(5 + 100) + (1 − h)(5 + 300) = 305 − 200h ≤ 130, so h ≥ 175/200 = 87.5%. Treating the table as single-level gives 75%, and ignoring the TLB lookup time gives 85%.
More Operating Systems questions
- Reference string (times 1–12): 1, 2, 3, 1, 2, 4, 1, 2, 5, 6, 5, 6. With working-set window Δ = 3 (the current and previous two…
- Resources A, B, C, D. Available = (1,5,2,0). Allocation: P0 (0,0,1,2), P1 (1,0,0,0), P2 (1,3,5,4), P3 (0,6,3,2), P4 (0,0,1,4). Max: P0…
- Disk cylinders 0–199, head at 100 moving toward 0. Requests: 23, 89, 132, 42, 187, 9, 155, 61. Under C-SCAN moving DOWN (service while…
- Disk cylinders 0–199, head at 100. Requests: 23, 89, 132, 42, 187, 9, 155, 61. What is the total head movement under FCFS and under SSTF?
- What is printed (ignoring order)? (Every fork() succeeds.) c int main() { for (int i = 0; i < 3; i++) { if (fork() == 0) { printf("%d "…
- How many numbers are printed in total, and what is their sum? (Every fork() succeeds; output unbuffered.) c int main() { for (int i = 0; i…