CS FundamentalsModerateGATE CS · Amazon/Microsoft SDE MCQ
TLB lookup takes 10 ns and is done first; memory access takes 100 ns; paging is two-level; the TLB hit ratio is 90%. Ignoring page faults, what is the effective memory access time?
- A. 120 ns
- B. 130 ns
- C. 140 ns
- D. 220 ns
Correct answer: B. 130 ns
Hit: 10 + 100 = 110 ns. Miss: 10 + 2 × 100 (two page-table levels) + 100 (the data) = 310 ns. 0.9 × 110 + 0.1 × 310 = 99 + 31 = 130 ns; counting only one table access on a miss gives 120.
More Operating Systems questions
- Memory access takes 200 ns and servicing a page fault takes 8 ms. To keep the effective access time within 10% of 200 ns, at most about…
- A machine has 4 GB of physical memory with 4 KB frames. An inverted page table stores one 8-byte entry per frame. How large is the…
- Pages are 1 KB and a process's page table maps pages 0, 1, 2, 3 to frames 5, 9, 2, 7. What physical address does logical address 3100 map…
- Banker's algorithm, resources (A, B, C). Available = (2, 2, 1). Allocation / Max: P0 (1,1,2)/(5,3,4), P1 (2,0,1)/(3,2,2), P2…
- 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?
- 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…