When do pagefault occur? Describe the actions taken by the OS when page fault occurs.
A page is a fixed-length block of memory that is used as a unit of
transfer between physical memory and external storage like a disk, and a
page fault is an interrupt (or exception) to the software raised by the
hardware, when a program accesses a page that is mapped in address
space, but not loaded in physical memory. Actually, page fault can occur
in 2 ways these are mainly:
Hardware generates a page fault:
The page corresponding to the requested address is not loaded in memory.