Bird
Raised Fist0

When a CPU encounters a TLB miss during virtual address translation, what is the correct order of operations that follows?

medium🧾 Trace Q4 of Q15
Operating Systems - TLB - Translation Lookaside Buffer & Effective Access Time
When a CPU encounters a TLB miss during virtual address translation, what is the correct order of operations that follows?
AThe system performs a page table lookup in memory, updates the TLB with the new entry, then accesses the physical memory.
BThe CPU immediately accesses physical memory without consulting the page table or updating the TLB.
CThe TLB is flushed entirely, and the CPU retries the address translation from scratch.
DThe CPU waits for the operating system to swap pages before accessing the page table.
Step-by-Step Solution
Solution:
  1. Step 1: Page Table Lookup

    On a TLB miss, the CPU must consult the page table in main memory to find the physical frame number corresponding to the virtual address.
  2. Step 2: Update TLB

    The retrieved page table entry is then loaded into the TLB to speed up future translations.
  3. Step 3: Access Physical Memory

    Finally, the CPU uses the physical address to access the desired data in main memory.
  4. Final Answer:

    Option A -> Option A
  5. Quick Check:

    Page table lookup precedes TLB update and memory access [OK]
Quick Trick: TLB miss triggers page table lookup before memory access [OK]
Common Mistakes:
MISTAKES
  • Assuming physical memory is accessed directly after a TLB miss without page table lookup.
  • Believing the TLB is flushed on every miss.
  • Thinking the OS must swap pages immediately on every TLB miss.
Trap Explanation:
PITFALL
  • Option B looks plausible but skips the mandatory page table lookup step.
Interviewer Note:
CONTEXT
  • Tests understanding of the TLB miss handling and address translation sequence.
Master "TLB - Translation Lookaside Buffer & Effective Access Time" in Operating Systems

2 interactive learning modes - each teaches the same concept differently

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Operating Systems Quizzes