What is page fault and what are the steps taken by the OS to remove page fault?
A page fault is caused while a page that hasn't been brought into memory is being addressed. The paging hardware now origins a page fault trap. This trap is a result of the OS malfunction to bring the desired page into memory. The procedure to eliminate the fault is
1. A confirms is made to see whether the reference is valid.
2. If reference is unacceptable then process is terminated else the page is brought into memory.
3. A free frame is found as well as a disk schedule is prepared to read the desired page into frame.
4. When complete page table is updated along with the interrupted instruction is restarted.