Virtual Memory

This page uses a toy memory model to help you understand how virtual memory works.

Virtual memory solves several problems:

Here's a diagram of a toy system with 2048 bytes of physical memory divided into 8 pages of 256 bytes each

Here are two more images that I stole from the MIT lecture. You should be able to solve the problems that they pose.