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

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

In this tutorial, we will try to learn the followings;

  1. What is Page Fault or Page Mis?
  2. Examples of Page Fault or Page Mis
  3. What is Page Hit?
  4. Examples of Page Hit
  5. Diagram of Page fault and Page Hit

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 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 column.

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 page hit

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