┌───────────────┐ Page fault detected ┌─────────────────────┐
│ CPU tries │ ──────────────────────────────▶ │ Operating System │
│ to access data│ │ handles page fault │
└───────────────┘ └──────────┬──────────┘
│
│ Load data from disk
▼
┌─────────────────────┐
│ Disk (slow storage) │
└──────────┬──────────┘
│
│ Data loaded into RAM
▼
┌─────────────────────┐
│ RAM (fast memory) │
└──────────┬──────────┘
│
│ Resume program
▼
┌─────────────────────┐
│ CPU continues work │
└─────────────────────┘This diagram shows how the CPU detects a page fault, the operating system loads data from disk into RAM, and then the CPU resumes work.