Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the sentence to explain what a TLB does.
Operating Systems
A Translation Lookaside Buffer (TLB) is a [1] that stores recent virtual to physical address translations. Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing TLB with main memory or disk storage.
✗ Incorrect
The TLB is a small cache that holds recent address translations to speed up memory access.
2fill in blank
mediumComplete the sentence to describe the purpose of the TLB.
Operating Systems
The main purpose of the TLB is to [1] the time it takes to translate virtual addresses to physical addresses. Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Thinking the TLB increases or delays translation time.
✗ Incorrect
The TLB reduces the time needed for address translation by caching recent translations.
3fill in blank
hardFix the error in the sentence about TLB misses.
Operating Systems
When a virtual address is not found in the TLB, it is called a [1] hit.
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing hit and miss terminology.
✗ Incorrect
If the address is not in the TLB, it is a TLB miss, not a hit.
4fill in blank
hardFill both blanks to complete the explanation of TLB operation.
Operating Systems
The TLB stores [1] to [2] address mappings to speed up memory access.
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up virtual and physical addresses.
✗ Incorrect
The TLB stores virtual to physical address mappings to quickly translate addresses.
5fill in blank
hardFill all three blanks to complete the dictionary comprehension that models a TLB cache.
Operating Systems
tlb_cache = [1]: [2] for [3], [4] in page_table.items() if [1] in recent_addresses}}
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing keys and values or variable names.
✗ Incorrect
This comprehension creates a TLB cache mapping virtual addresses to physical addresses for recently used addresses.