Level 1: Bronze
A memorized definition. Not wrong, but it stops there.
It is a technique that lets programs use more memory than the machine has.
3 stars If you are short on time, start with this one.
In one or two sentences
Each process sees its own contiguous address space, and the OS maps it to physical memory with page tables, page by page.
Say it out loud, or type it below. What you type never leaves this device.
A memorized definition. Not wrong, but it stops there.
It is a technique that lets programs use more memory than the machine has.
Correct, but too broad or missing context.
A process uses virtual addresses and the OS maps them to physical ones with a page table. Pages that are rarely used go out to disk, so programs larger than RAM can run.
Reaches principle, use and trade-off, with words that invite the next question.
The MMU translates virtual addresses through the page table, so processes cannot see each other's memory and can share pages of the same library. Demand paging loads only the pages in use, which is why a program can be larger than RAM. The cost is address translation, so the TLB caches recent translations, and touching a page that is not in memory raises a page fault and a slow disk read. When memory runs short, thrashing makes performance collapse. That is the trade.
These are likely next questions from an interviewer. Think of your answer first, then press the button.
1 / 3
What happens on a page fault?
The CPU raises an exception and the OS checks whether the page is valid. If it is, the OS reads it from disk into a free frame, updates the page table and restarts the instruction. If not, the process is killed.
2 / 3
What is the TLB and why is it needed?
The page table lives in memory, so every translation would cost extra memory reads. The TLB caches recent translations inside the CPU.
3 / 3
What is thrashing and how do you reduce it?
The working pages do not fit, so page faults keep happening and the system does more I/O than work. Run fewer processes at once, give each enough frames for its working set, or add memory.
This is a textbook level concept, so no outside source is listed.