Caffeinated Coder
Book an appointment
Lesson 36 · Computer architecture

Virtual memory

Every running program believes it has the computer's memory to itself, starting at address 0. That private view is virtual memory. The MMU, a part of the processor, translates each virtual address into a real place in RAM: it cuts memory into 4 KiB pages, looks each page up in the program's own page table, and keeps recent answers in a tiny cache called the TLB. Watch two programs use the very same address and land in different frames, a missing page come in from disk after a page fault, and a write to a read-only page get stopped. Then see why this keeps programs apart and lets them use more memory than the RAM has.

14 min10 steps5 questionsBeginner
Fig 36 · Interactive
Loading figure…
or ← →

Quiz Unlocks after the last step.