Definition
Page fault dominates like an error. If any program tries to access piece of memory but which is not existed into physical memory, means main memory, then page fault will be occurred. The fault specifies the O/S that it must trace the all data in to virtual memory management, and after that moves it from secondary memory like as hard disk to primary memory of system
Page Fault Diagram
In the programming methods, page fault arise the exception, that specifies the O/S, which access the memory slots from virtual memory for running the program in continue nature.
Handling of a Page Fault
Check the location of the referenced page in the PMT
If a page fault occurred, call on the operating system to fix it
Using the frame replacement algorithm, find the frame location
Read the data from disk to memory
Update the page map table for the process
The instruction that caused the page fault is restarted when the process resumes execution.