DSA Factory
Free Virtual memory lessonsVirtual memory · Stage 0 · Demand paging · Step 1

Why virtual memory

See how running programs bigger than RAM works, and what else the same mechanism gives you. About 12 minutes.

Quick check

Why can a program larger than physical RAM run under virtual memory?

  1. AOnly the pages it is actually using need to be in RAM; the rest wait on disk
  2. BThe OS compresses the program until it fits
  3. CThe CPU has a built-in extra memory
Show the answer

Only the pages it is actually using need to be in RAM; the rest wait on disk. Demand paging loads a page when it is first touched.

Lock it in

4 questions on this idea

Short questions that apply the idea to new cases: trace it, work out a number, put steps in order. A wrong answer explains itself.

Answer them in your browserFree account, no card. Your progress is saved, and the idea comes back in a quick review later.
Sign up free to solve