Handling Page Faults
Alongside the page table there is a data structure that records where pages are located on disk.
On a page fault this is used to write the page from disk to main memory.
- If all pages in main memory are already used, then a “least recently used” strategy is adopted to decide which page in physical memory should be dumped to make room for the new one.