CS FundamentalsModerateGATE CS
On a context switch, why can a TLB WITHOUT address-space identifiers (ASIDs) not simply keep its entries?
- A. Entries from the old process would translate the new process's virtual pages to the wrong frames, so the TLB must be flushed
- B. The TLB is too small to keep entries
- C. TLB entries contain register values
- D. Flushing is needed only on page faults
Correct answer: A. Entries from the old process would translate the new process's virtual pages to the wrong frames, so the TLB must be flushed
Virtual page numbers are per-process. Without an ASID tag the hardware cannot tell whose mapping an entry is, so stale entries would be wrong; tagging avoids the flush.
More Operating Systems questions
- A hashed page table is used for 64-bit address spaces. Which statement about it is correct?
- Which statement about inverted page tables is correct?
- Belady's anomaly is observed for FIFO with reference string R. Which statement is necessarily true?
- A process references pages in a loop over 5 distinct pages: 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, ... with 4 frames. Which policy performs best in…
- A system uses 4 KB pages. A process's code segment is 10,000 bytes, data 7,000 bytes and stack 3,000 bytes, each segment starting on a…
- Compaction is used to remove external fragmentation. Which condition is required for compaction to be possible?