CS FundamentalsVery hardGATE CS
Which hardware support is essential for demand paging to work with instructions that can fault midway (for example a block-move instruction whose source and destination span page boundaries)?
- A. A larger TLB
- B. A dirty bit in every PTE
- C. The ability to restart (or resume) the instruction after the fault, e.g. by checking all pages first or saving partial state
- D. A second CPU to handle faults
Correct answer: C. The ability to restart (or resume) the instruction after the fault, e.g. by checking all pages first or saving partial state
If an instruction has partly modified memory before faulting, simply restarting it could repeat side effects. Architectures handle this by probing all pages before starting, or by saving micro-state so the instruction can resume.
More Operating Systems questions
- Which statement about the dirty (modified) bit in a page-table entry is correct?
- In the enhanced second-chance (NRU-style) algorithm using (reference, modify) bit pairs, which class of page is the BEST victim and which…
- Assertion (A): Local page replacement can reduce thrashing caused by one misbehaving process affecting others. Reason (R): With local…
- Copy-on-write after fork(): the parent has 1000 resident pages. The child immediately calls exec(). Roughly how many page copies does COW…
- What is the main advantage of memory-mapped files (mmap) over read()/write() for random access to a large file?
- Which statement about the page-fault rate versus the number of allocated frames is generally correct for a process with locality?