CS FundamentalsModerateAccenture · Capgemini pattern
A process has a single-level page table with a 'valid/invalid' bit per entry. A memory reference to a page marked invalid causes a page fault. Which of these is NOT a reason a page could be marked invalid?
- A. The reference is to an address outside the process's valid logical address range
- B. The TLB has recently cached that page's frame number
- C. The page was swapped out to backing store to free a frame
- D. The page simply has not been brought into memory yet (demand paging)
Correct answer: B. The TLB has recently cached that page's frame number
A TLB caching a translation is unrelated to the page table's valid/invalid bit — in fact, a valid TLB entry generally means the page IS currently resident. A page is marked invalid for out-of-range addresses, not-yet-loaded pages, or pages swapped out, all of which trigger a fault on access.
More Operating Systems questions
- Memory-mapped files (via mmap) let a process treat a file's contents as part of its address space. Compared to read()/write() calls, what…
- Swap space (backing store) on disk lets the OS support more processes than fit entirely in physical RAM. Which statement about it is…
- RAID 5 stripes data across N disks and stores a rotating parity block (the XOR of the corresponding data blocks) on a different disk for…
- An array has 5 disks in RAID 5 (4 data + 1 rotating parity per stripe, effectively). Compared to plain striping (RAID 0) across the same 5…
- A disk subsystem uses C-LOOK (like C-SCAN, but it jumps straight to the lowest pending request instead of running all the way to the…
- In the standard five-state process model, which transition can NEVER happen directly?