Deck 3: Memory Management: Virtual Memory Systems
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/40
Play
Full screen (f)
Deck 3: Memory Management: Virtual Memory Systems
1
With demand paging,if there are no empty page frames available,to move in a new page,one of the current resident pages must be placed into main memory.
False
2
Demand paging introduced the concept of loading only a part of the program into memory for processing
True
3
In a demand paging scheme,the first-in first-out (FIFO)page replacement policy chooses the page least recently accessed to be swapped out.
False
4
The optimal selection of cache size and replacement algorithm can result in 80 to 90 percent of all requests being in the cache.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
5
Paged memory allocation offers the advantage that it doesn't require the entire job to be stored in memory during its execution.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
6
The segmented/demand paged memory allocation scheme is a combination of segmentation and demand paging,and it offers the logical benefits of segmentation,as well as the physical benefits of paging.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
7
With segmented memory allocation,each job is divided into several segments of the same size,one for each module containing pieces that perform related functions.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
8
The primary advantage of storing programs in noncontiguous page frames (in a paged memory allocation scheme)is that main memory is used more efficiently because an empty page frame can be used by any page of any job.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
9
Associative memory is a name given to several hardware registers that are allocated to each active job whose task is to associate segment and page numbers belonging to the job being processed with their main memory addresses.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
10
A job's working set is the collection of pages that must be loaded from secondary storage.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
11
The key to the successful implementation of demand paging is the use of a high-speed CPU.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
12
With demand paging,three additional fields are introduced for each page in each PMT: one to determine if the page being requested is already in memory,a second to determine if the page contents have been modified while in memory,and a third to determine if the page has been referenced most recently.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
13
Thrashing is a problem that occurs when there are a large number of jobs and many free pages so that pages are being moved around too much.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
14
When using a FIFO scheme,adding more memory always results in better performance.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
15
In the bit-shifting variation of the LRU page replacement policy,the process of shifting bits to the right and resetting the leftmost bit to 1 when a page is referenced gives a history of each page's usage.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
16
In a paged memory allocation scheme,to find the actual position of an instruction in memory,first the page number and displacement are determined.Then the operating system refers to the job's PMT to correlate the page with its page frame.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
17
Virtual memory can be implemented with both paging and segmentation.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
18
A variation of the LRU page replacement algorithm known as the clock page replacement policy is implemented using a pointer to step through the reference bits of the active pages,simulating a clockwise motion.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
19
Cache memory is based on the concept of using a large,fast,and expensive memory to supplement the workings of main memory.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
20
The Job Table (JT)contains two values for each active job: the size of the job and the memory location where its Page Map Table is stored.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
21
In demand paging,pages are ____ between main memory and secondary storage.
A) swapped
B) traded
C) allocated
D) faulted
A) swapped
B) traded
C) allocated
D) faulted
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
22
The purpose of cache memory is to keep handy the most recently accessed data and instructions so that the CPU can access them repeatedly without wasting time.This purpose is similar to that of the ____ of a Web browser.
A) cache file
B) bookmark file
C) page file
D) block file
A) cache file
B) bookmark file
C) page file
D) block file
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
23
In a paged memory allocation scheme,the ____ contains two values for each active job: the size of the job and the memory location where its Page Map Table is stored.
A) Memory Management Table
B) Job Table
C) Page Access Table
D) Memory Map Table
A) Memory Management Table
B) Job Table
C) Page Access Table
D) Memory Map Table
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
24
Cache memory is divided into blocks of equal size called ____.
A) slots
B) pages
C) segments
D) partitions
A) slots
B) pages
C) segments
D) partitions
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
25
In a paged memory allocation scheme,a page size that is too small will generate ____.
A) very long Page Map Tables
B) excessive internal fragmentation
C) excessive page faults
D) excessive external fragmentation
A) very long Page Map Tables
B) excessive internal fragmentation
C) excessive page faults
D) excessive external fragmentation
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
26
In demand paging,the collection of pages residing in memory that can be accessed directly without incurring a page fault is called the ____.
A) page set
B) working set
C) job set
D) denning set
A) page set
B) working set
C) job set
D) denning set
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
27
____ effectively removes restrictions on maximum program size.
A) Segmenting
B) Virtual memory
C) Shared memory
D) Multithreading
A) Segmenting
B) Virtual memory
C) Shared memory
D) Multithreading
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
28
____ can be thought of as being an intermediary between main memory and the special-purpose registers,which are the domain of the CPU.
A) Virtual memory
B) Cache memory
C) Paging
D) Segmenting
A) Virtual memory
B) Cache memory
C) Paging
D) Segmenting
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
29
To access a location in memory when using segmented memory management,the address is composed of two entries: ____.
A) the segment number and the line number
B) the segment number and the displacement
C) the line number and the displacement
D) the segment number, the line number, and the displacement
A) the segment number and the line number
B) the segment number and the displacement
C) the line number and the displacement
D) the segment number, the line number, and the displacement
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
30
In demand paging schemes,the ____ in a Page Map Table indicates whether the page is currently in memory.
A) referenced bit
B) modified bit
C) memory bit
D) status bit
A) referenced bit
B) modified bit
C) memory bit
D) status bit
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
31
A disadvantage of segmented memory allocation is ____.
A) the physical size requirements of main memory
B) the number of page faults
C) internal fragmentation
D) external fragmentation
A) the physical size requirements of main memory
B) the number of page faults
C) internal fragmentation
D) external fragmentation
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
32
The primary advantage of storing programs in noncontiguous locations is that ____.
A) multiple programs can run at the same time
B) every program will be able to run
C) secondary storage is accessed more quickly
D) main memory is used more efficiently
A) multiple programs can run at the same time
B) every program will be able to run
C) secondary storage is accessed more quickly
D) main memory is used more efficiently
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
33
The ____ demonstrates that when using a FIFO policy,in rare cases,adding more memory to a system can cause an increase in page interrupts.
A) Paging Anomaly
B) Belady Anomaly
C) Interrupt Anomaly
D) Laszlo Anomaly
A) Paging Anomaly
B) Belady Anomaly
C) Interrupt Anomaly
D) Laszlo Anomaly
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
34
One of the most important innovations of demand paging is that it makes ____ feasible.
A) parallel memory
B) automatic allocation
C) spontaneous allocation
D) virtual memory
A) parallel memory
B) automatic allocation
C) spontaneous allocation
D) virtual memory
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
35
The term "____" means that during any phase of its execution,a program references only a small fraction of its pages.
A) dynamic paging
B) structured programming
C) locality of reference
D) working set
A) dynamic paging
B) structured programming
C) locality of reference
D) working set
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
36
With segmented memory allocation,each job is divided into several ____ of different sizes,one for each module that contains pieces that perform related functions.
A) pages
B) modules
C) segments
D) partitions
A) pages
B) modules
C) segments
D) partitions
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
37
In a paged memory allocation scheme,a simple ____ has one entry for each page frame that shows its location and its free/busy status.
A) Memory Management Table
B) Job Table
C) Page Access Table
D) Memory Map Table
A) Memory Management Table
B) Job Table
C) Page Access Table
D) Memory Map Table
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
38
The ____ page replacement policy is based on the theory that the best page to remove is the one that has been in memory the longest.
A) TRU
B) LRU
C) LIFO
D) FIFO
A) TRU
B) LRU
C) LIFO
D) FIFO
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
39
A variation of the LRU page replacement algorithm known as the ____ replacement policy is implemented with a circular queue.
A) clock page
B) round robin
C) performance page
D) bit shifting
A) clock page
B) round robin
C) performance page
D) bit shifting
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
40
In demand paging,when an excessive number of pages are moved back and forth between main memory and secondary storage,it is called ____.
A) swapping
B) faulting
C) paging
D) thrashing
A) swapping
B) faulting
C) paging
D) thrashing
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck