CS FundamentalsVery hardGATE CS
A two-level page table, TLB lookup 10 ns, memory 80 ns, TLB hit ratio 90%. On a TLB miss, a page-walk cache holding outer-level entries hits 80% of the time (then only the inner table is read from memory); otherwise both levels are read. What is the effective access time?
- A. 106 ns
- B. 98 ns
- C. 99.6 ns
- D. 89.6 ns
Correct answer: C. 99.6 ns
Hit: 90 ns. Miss with PWC hit: 10 + 80 + 80 = 170 ns; full walk: 10 + 160 + 80 = 250 ns. EAT = 0.9×90 + 0.1×(0.8×170 + 0.2×250) = 81 + 18.6 = 99.6 ns.
More Operating Systems questions
- 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…
- 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 "…