Deck 18: Understanding Virtual Memory and Page Replacement Algorithms

Full screen (f)
exit full mode
Question
Virtual memory allows___________

A)execution of a process that may not be completely in memory
B)a program to be smaller than the physical memory
C)a program to be larger than the secondary storage
D)execution of a process without being in physical memory
Use Space or
up arrow
down arrow
to flip the card.
Question
A process is thrashing if___________

A)it is spending more time paging than executing
B)it is spending less time paging than executing
C)page fault occurs
D)swapping can not take place
Question
The ability to execute a program that is only partially in memory has benefits like

A)the amount of physical memory cannot put a constraint on the program
B)programs for an extremely large virtual space can be created
C)throughput increases
D)all of the mentioned
Question
Virtual memory is normally implemented by___________  

A)demand paging
B)buses
C)virtualization
D)all of the mentioned
Question
Segment replacement algorithms are more complex than page replacement algorithms because___________

A)segments are better than pages
B)pages are better than segments
C)segments have variable sizes
D)segments have fixed sizes
Question
A swapper manipulates___________         whereas the pager is concerned with individual___________of a process.

A)the entire process, parts
B)all the pages of a process, segments
C)the entire process, pages
D)none of the mentioned
Question
Using a pager___________

A)increases the swap time
B)decreases the swap time
C)decreases the swap time & amount of physical memory needed
D)increases the amount of physical memory needed
Question
The valid - invalid bit, in this case, when valid indicates?

A)the page is not legal
B)the page is illegal
C)the page is in memory
D)the page is not in memory
Question
A page fault occurs when?

A)a page gives inconsistent data
B)a page cannot be accessed due to its absence from memory
C)a page is invisible
D)all of the mentioned
Question
When a page fault occurs, the state of the interrupted process is___________

A)disrupted
B)invalid
C)saved
D)none of the mentioned
Question
When a process begins execution with no pages in memory?

A)process execution becomes impossible
B)a page fault occurs for every page brought into memory
C)process causes system crash
D)none of the mentioned
Question
If the memory access time is denoted by 'ma' and 'p' is the probability of a page fault (0 <= p <= 1). Then the effective access time for a demand paged memory is

A)p x ma + (1-p) x page fault time
B)ma + page fault time
C)(1-p) x ma + p x page fault time
D)none of the mentioned
Question
When the page fault rate is low

A)the turnaround time increases
B)the effective access time increases
C)the effective access time decreases
D)turnaround time & effective access time increases
Question
Locality of reference implies that the page reference being made by a process

A)will always be to the page used in the previous page reference
B)is likely to be one of the pages used in the last few page references
C)will always be one of the pages existing in memory
D)will always lead to page faults
Question
Which of the following page replacement algorithms suffers from Belady's Anomaly?

A)optimal replacement
B)lru
C)fifo
D)both optimal replacement and fifo
Question
A memory page containing a heavily used variable that was initialized very early and is in constant use is removed, then the page replacement algorithm used is___________

A)lru
B)lfu
C)fifo
D)none of the mentioned
Question
Users___________that their processes are running on a paged system.

A)are aware
B)are unaware
C)may unaware
D)none of the mentioned
Question
If no frames are free,___________page transfer(s) is/are required.

A)one
B)two
C)three
D)four
Question
A FIFO replacement algorithm associates with each page the___________

A)time it was brought into memory
B)size of the page in memory
C)page after and before it
D)all of the mentioned
Question
What is the Optimal page - replacement algorithm?

A)replace the page that has not been used for a long time
B)replace the page that has been used for a long time
C)replace the page that will not be used for a long time
D)none of the mentioned
Question
LRU page - replacement algorithm associates with each page the___________  

A)time it was brought into memory
B)the time of that page's last use
C)page after and before it
D)all of the mentioned
Question
What are the two methods of the LRU page replacement policy that can be implemented in hardware?

A)counters
B)ram & registers
C)stack & counters
D)registers
Question
When using counters to implement LRU, we replace the page with the___________

A)smallest time value
B)largest time value
C)greatest size
D)none of the mentioned
Question
There is a set of page replacement algorithms that can never exhibit Belady's Anomaly, called___________

A)queue algorithms
B)stack algorithms
C)string algorithms
D)none of the mentioned
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/24
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 18: Understanding Virtual Memory and Page Replacement Algorithms
1
Virtual memory allows___________

A)execution of a process that may not be completely in memory
B)a program to be smaller than the physical memory
C)a program to be larger than the secondary storage
D)execution of a process without being in physical memory
execution of a process that may not be completely in memory
2
A process is thrashing if___________

A)it is spending more time paging than executing
B)it is spending less time paging than executing
C)page fault occurs
D)swapping can not take place
it is spending more time paging than executing
3
The ability to execute a program that is only partially in memory has benefits like

A)the amount of physical memory cannot put a constraint on the program
B)programs for an extremely large virtual space can be created
C)throughput increases
D)all of the mentioned
all of the mentioned
4
Virtual memory is normally implemented by___________  

A)demand paging
B)buses
C)virtualization
D)all of the mentioned
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
k this deck
5
Segment replacement algorithms are more complex than page replacement algorithms because___________

A)segments are better than pages
B)pages are better than segments
C)segments have variable sizes
D)segments have fixed sizes
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
k this deck
6
A swapper manipulates___________         whereas the pager is concerned with individual___________of a process.

A)the entire process, parts
B)all the pages of a process, segments
C)the entire process, pages
D)none of the mentioned
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
k this deck
7
Using a pager___________

A)increases the swap time
B)decreases the swap time
C)decreases the swap time & amount of physical memory needed
D)increases the amount of physical memory needed
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
k this deck
8
The valid - invalid bit, in this case, when valid indicates?

A)the page is not legal
B)the page is illegal
C)the page is in memory
D)the page is not in memory
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
k this deck
9
A page fault occurs when?

A)a page gives inconsistent data
B)a page cannot be accessed due to its absence from memory
C)a page is invisible
D)all of the mentioned
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
k this deck
10
When a page fault occurs, the state of the interrupted process is___________

A)disrupted
B)invalid
C)saved
D)none of the mentioned
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
k this deck
11
When a process begins execution with no pages in memory?

A)process execution becomes impossible
B)a page fault occurs for every page brought into memory
C)process causes system crash
D)none of the mentioned
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
k this deck
12
If the memory access time is denoted by 'ma' and 'p' is the probability of a page fault (0 <= p <= 1). Then the effective access time for a demand paged memory is

A)p x ma + (1-p) x page fault time
B)ma + page fault time
C)(1-p) x ma + p x page fault time
D)none of the mentioned
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
k this deck
13
When the page fault rate is low

A)the turnaround time increases
B)the effective access time increases
C)the effective access time decreases
D)turnaround time & effective access time increases
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
k this deck
14
Locality of reference implies that the page reference being made by a process

A)will always be to the page used in the previous page reference
B)is likely to be one of the pages used in the last few page references
C)will always be one of the pages existing in memory
D)will always lead to page faults
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
k this deck
15
Which of the following page replacement algorithms suffers from Belady's Anomaly?

A)optimal replacement
B)lru
C)fifo
D)both optimal replacement and fifo
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
k this deck
16
A memory page containing a heavily used variable that was initialized very early and is in constant use is removed, then the page replacement algorithm used is___________

A)lru
B)lfu
C)fifo
D)none of the mentioned
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
k this deck
17
Users___________that their processes are running on a paged system.

A)are aware
B)are unaware
C)may unaware
D)none of the mentioned
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
k this deck
18
If no frames are free,___________page transfer(s) is/are required.

A)one
B)two
C)three
D)four
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
k this deck
19
A FIFO replacement algorithm associates with each page the___________

A)time it was brought into memory
B)size of the page in memory
C)page after and before it
D)all of the mentioned
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
k this deck
20
What is the Optimal page - replacement algorithm?

A)replace the page that has not been used for a long time
B)replace the page that has been used for a long time
C)replace the page that will not be used for a long time
D)none of the mentioned
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
k this deck
21
LRU page - replacement algorithm associates with each page the___________  

A)time it was brought into memory
B)the time of that page's last use
C)page after and before it
D)all of the mentioned
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
k this deck
22
What are the two methods of the LRU page replacement policy that can be implemented in hardware?

A)counters
B)ram & registers
C)stack & counters
D)registers
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
k this deck
23
When using counters to implement LRU, we replace the page with the___________

A)smallest time value
B)largest time value
C)greatest size
D)none of the mentioned
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
k this deck
24
There is a set of page replacement algorithms that can never exhibit Belady's Anomaly, called___________

A)queue algorithms
B)stack algorithms
C)string algorithms
D)none of the mentioned
Unlock Deck
Unlock for access to all 24 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 24 flashcards in this deck.