Quiz 12.3

DIRECTIONS: Read each question carefully. Then click on the dot next to the answer that most closely fits the question. Try to answer all questions on this quiz and when you are done, click on the grade me button at the bottom.


Coverage: Sections 12.3 and 12.4

  1. What is the working set?
the set of frames that contain the code that is currently executing
the set of pages that are currently being accessed
the set of pages that are not being accessed
the set of disk pages that hold the swapped pages

  1. Which statement about the size of the working set is true?
the size of the working set is larger than the number of pages in virtual memory
the size of the working set is equal to the number of pages in virtual memory
the size of the working set is less than the number of pages in virtual memory
the size of the working set is larger than the number of pages in real memory

  1. What is the term for a program that does very little real computing because it must continually move pages in and out of frames?
thrashing
spinning
blocking
sleeping

  1. What do we call the phenomenon that says most programs stay within a small region of their memory for a while, making it economical to use virtual memory?
relocatability
locality
generality
scalability

  1. What do we call a region of the code where the program spends the vast majority of its time?
busy wait
spin lock
thrashing region
hot spot

  1. What is the likely reason that a program is thrashing?
its working set size is larger than the number of frames it has been allocated
its working set size is smaller than the number of frames it has been allocated
real memory is much smaller than virtual memory
virtual memory is much smaller than real memory

  1. Which kind of control structure of a high level language is likely to form a hot spot?
a loop
an if-then-else
a subprogram call
sequential code