CS FundamentalsHardIBM · Deloitte pattern
A TLB has a hit ratio of 80%. TLB lookup takes 20 ns; a memory access (for the page table on a miss, or for data) takes 100 ns each. On a hit, only one memory access (for data) is needed after the TLB lookup; on a miss, two memory accesses are needed (page table, then data). What is the effective access time?
- A. 220 ns
- B. 110 ns
- C. 140 ns
- D. 120 ns
Correct answer: C. 140 ns
Hit: 20 + 100 = 120 ns, with probability 0.8. Miss: 20 + 100 + 100 = 220 ns, with probability 0.2. EMAT = 0.8 × 120 + 0.2 × 220 = 96 + 44 = 140 ns.
More Operating Systems questions
- Segmentation divides a process's address space into logical units (code, stack, heap) of varying size, unlike paging's fixed-size frames…
- In a segmentation scheme with segment table entries (base, limit), a process issues a logical address (segment 2, offset 5000). The…
- A system uses a two-level page table: a 10-bit outer index, a 10-bit inner index, and a 12-bit offset, for a 32-bit virtual address. What…
- A 36-bit virtual address space uses 4 KB pages and single-level page table entries of 8 bytes each. What is the total size of the page…
- An inverted page table has one entry per physical frame (not per virtual page), shared across all processes, each entry tagged with the…
- Belady's anomaly refers to the surprising fact that: