Virtual Memory Explained
- 27Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
27 questions
- 1In the early days of computing, the era of_____meant that programs directly addressed physical memory without any abstraction.
Hint
This approach had no translation layer; software talked directly to hardware.
Answer
physical addressing
- 2The main problem with physical addressing when running multiple programs was_____: programs could overwrite each other's memory.
Hint
Think about who 'owns' a memory location when multiple programs are in RAM.
Answer
ownership
- 3External fragmentation occurs when free memory is split into small gaps, making it impossible to load a program that requires a_____block of memory.
Hint
The program needed one unbroken stretch of memory.
Answer
contiguous
- 4In base and bounds, the_____register stores the physical starting address of a program in memory.
Hint
This register's value is added to every virtual address by the MMU.
Answer
base
- 5The_____register in base and bounds stores the maximum memory size the program is allowed to access.
Hint
This register defines the limit of the program's memory region.
Answer
bound
- 6When a program attempts to access an address beyond its bound, the CPU raises a hardware exception called a_____.
Hint
This error terminates the program and hands control back to the OS.
Answer
segmentation fault
- 7The process of_____in base and bounds involves the OS moving all programs together in RAM to eliminate gaps.
Hint
Think of reorganizing a bookshelf while people are reading.
Answer
compaction
- 8Segmentation improved upon base and bounds by giving a program multiple independent base and bound pairs called_____.
Hint
These parts include code, heap, and stack.
Answer
segments
- 9In segmentation, the code segment can be set to_____only, preventing accidental corruption of instructions.
Hint
This permission restricts modification of the segment.
Answer
read-only
- 10Segmentation allowed multiple instances of the same program to share a single_____segment in physical memory.
Hint
The instructions for the program are duplicated for each instance? Not with shared memory.
Answer
code
- 11Segmentation still suffered from external fragmentation because segments were_____in size.
Hint
Unlike fixed-size blocks, segments sizes differ.
Answer
variable
- 12In paging, physical RAM is divided into small fixed-size slots called_____.
Hint
These are the physical counterparts to virtual pages.
Answer
page frames
- 13The program's virtual address space is divided into fixed-size pieces called_____.
Hint
These are the same size as page frames.
Answer
pages
- 14Paging eliminates external fragmentation because any page can be placed into any free_____.
Hint
All allocation units are the same size.
Answer
page frame
- 15A downside of paging is_____fragmentation, where allocated pages waste space if the program needs less than a full page.
Hint
Think of the space inside a page that is unused.
Answer
internal
- 16The_____is a data structure used by the OS to map virtual pages to physical page frames.
Hint
It acts as a master map for address translation.
Answer
page table
- 17Paging introduces a latency penalty because each memory access requires two RAM lookups: one for the page table and one for the_____.
Hint
After translation, you still need to fetch the actual content.
Answer
data
- 18The_____is a hardware cache that stores recent virtual-to-physical address translations to speed up paging.
Hint
Its acronym stands for Translation Lookaside Buffer.
Answer
TLB
- 19A_____occurs when a translation is found in the TLB, resulting in a fast address translation.
Hint
The opposite is a miss.
Answer
TLB hit
- 20When the TLB does not contain a translation, the system must perform a slow_____to find the physical address.
Hint
This involves accessing the page table in memory.
Answer
page table walk
- 21In demand paging, the OS initially loads only the minimum pages needed and marks others as_____in the page table.
Hint
This flag indicates the page is not in RAM.
Answer
not present
- 22A_____is a hardware exception raised when a program accesses a page marked as not present.
Hint
This is not a crash but an opportunity for the OS to load the page.
Answer
page fault
- 23During a page fault, the OS loads the missing page from the_____into an empty page frame.
Hint
The page resides on secondary storage before being brought into RAM.
Answer
disk
- 24When RAM is full, the OS must_____an existing page to make room for a new page.
Hint
This means removing a page from RAM, possibly writing it back to disk.
Answer
evict
- 25A common page replacement policy that evicts the page that hasn't been used for the longest time is called_____.
Hint
It exploits temporal locality.
Answer
least recently used (LRU)
- 26When a system is so low on RAM that it constantly swaps pages in and out, it enters a state called_____.
Hint
The system spends more time swapping than executing.
Answer
thrashing
- 27During thrashing, the CPU spends less than 1% of its time actually running code and the rest frantically moving data between RAM and_____.
Hint
The slow secondary storage is the bottleneck.
Answer
disk

Ask anything
We've read this whole study set, so questions about it get the best answers.