Section 12.2
Review Questions
Virtual memory in action
What do we call the address in a program where execution begins?
What is a
victim
?
What is the name of the most common algorithm for selecting a victim?
What extra piece of information does the above algorithm need in conjunction with each frame of real memory, in order to work properly?
Why would it be advantageous to run a large program twice?
What do we mean when we say a page is
dirty
?
Is it possible for a frame to be dirty?
If a computer had 8K of virtual memory, how many address bits would it need?
If a computer had 8K of virtual memory, and pages were 512 bytes long, how many pages would there be?
Write out in decimal what we mean by the numbers
1K, 4K
and
8K
.
Imagine that you are working with a small system that has 8K of virtual memory and 4K of real memory. Each page is 1K long. How many pages and how many frames would there be?
Below is a picture of a small 8K virtual memory address space, along with some memory operations. Next to each, write the page number that the address implies. Also check off the "dirty" column if the page would become dirty by this operation: