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)?

  1. A. A larger TLB
  2. B. A dirty bit in every PTE
  3. C. The ability to restart (or resume) the instruction after the fault, e.g. by checking all pages first or saving partial state
  4. 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

Exams that ask this topic