Concept Flow - Page fault handling
Process accesses memory
Is page in RAM?
Yes→Access memory successfully
No
Trigger page fault interrupt
OS checks page table
Find free frame or select victim page
Load required page from disk to RAM
Update page table
Resume process execution
When a process tries to access a page not in RAM, a page fault occurs. The OS then loads the page from disk into RAM and updates the page table before resuming the process.