Questions: Page Fault Handling and Recovery

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

A process reads a virtual address whose page table entry has the valid bit clear, but the page was legitimately allocated and simply swapped to disk. After the OS handles this, what happens next?

AThe process receives a SIGSEGV signal and terminates
BThe OS loads the page into memory, updates the page table, and the faulting instruction is retried transparently
CThe OS loads the page but restarts the entire process from scratch
DThe process must explicitly re-issue the memory access after the OS notifies it
Question 2 Multiple Choice

A system is thrashing. Which best explains why thrashing is so catastrophic for performance?

AThrashing causes the CPU to overheat because it is running too many processes simultaneously
BPages are written to disk faster than the disk can handle, causing data corruption
CThe CPU spends most of its time waiting for disk I/O to service page faults, doing almost no useful computation
DThrashing forces the OS to restart processes, losing their in-memory state
Question 3 True / False

After the OS handles a valid page fault, the instruction that triggered the fault must be re-executed by the processor.

TTrue
FFalse
Question 4 True / False

Most page fault, regardless of type, results in a disk read to load the missing page.

TTrue
FFalse
Question 5 Short Answer

Why does the OS block the faulting process and switch to a different process while waiting for the disk I/O that services a page fault?

Think about your answer, then reveal below.