Difference between page fault, page hit, and page miss, Examples, Diagram

Difference between page fault, page hit, and page miss, Examples and Diagram.

What is Page fault?

When we want to load the page on the memory, and the page is not already on memory, then it is called a page fault. The page fault is also called page miss.

optimal page replacement algorithm operating systems
Figure: optimal page replacement algorithm operating systems

Example of a page fault or page miss

For example, in the diagram page fault is on 2nd, 3rd, 4th and 6th columns.

What is Page Hit?

When we want to load the page on the memory, and the page is already available on memory, then it is called page hit.

Example of the page hit

For example, in the diagram page hit is on the 5th and 7th column.

MCQs on Paging