Page Fault

Important

Question

What if a piece of data is on disk rather than in memory?

  • If the Page Table indicates that the virtual address is not in memory

A hardware exception will be generated (captured by the OS)

  • The current process suspends, others can resume
  • The OS moves the data to memory and resumes the suspended process

Page faults are generated when the Page Table tells the OS that the page is on disk
- The CPU then generates a Page Fault Exception