Deck 3: Memory Management: Virtual Memory

ملء الشاشة (f)
exit full mode
سؤال
To find the exact position of an instruction in memory, after the page number has been calculated, the operating system refers to the job's PMT to find out which page frame contains the page.
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
To find the address of a given program line, the line number is multiplied by the page size.
سؤال
To move in a new page, a resident page must be swapped back into primary storage.
سؤال
A variation of the LRU page replacement algorithm is known as the clock page replacement policy because it is implemented with a circular queue and uses a pointer to step through the reference bits of the active pages, simulating a clockwise motion.
سؤال
The Job Table (JT) contains two entries for each active job: the size of the job and the memory location where its Page Map Table is stored.
سؤال
Demand paging requires that the Page Map Table for each job keep track of each page as it is loaded or removed from main memory.
سؤال
Paged memory allocation usually results in internal fragmentation, but never external fragmentation.
سؤال
The key to the successful implementation of demand paging is the use of a direct access memory device that can work directly with the CPU.
سؤال
Demand paging was the first widely used scheme that removed the restriction of having the entire job in memory from the beginning to the end of its processing.
سؤال
A page interrupt is generated when a new page is brought into memory.
سؤال
Every time an instruction is executed, or a data value is used, the operating system (or the hardware) must translate the job space address, which is relative, into its physical address, which is absolute.
سؤال
Each page of a job is actually stored in a page frame that can be located anywhere in available main memory.
سؤال
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.
سؤال
The first-in first-out (FIFO) page replacement policy will remove the pages that have been in memory the shortest.
سؤال
Demand paging offers a perfect solution to inefficient memory limitations.
سؤال
When using a FIFO scheme, more memory will always result in better performance.
سؤال
Within the Memory Manager the Segment Link Table lists details about each segment (one for each job).
سؤال
The address of the beginning of a page frame is found by multiplying the page frame number by the number of frames.
سؤال
A job's working set is the set of pages residing in memory that can be accessed indirectly.
سؤال
One sector will hold one page of job instructions and fit into one page frame of memory.
سؤال
The use of virtual memory requires cooperation between the Memory Manager (which tracks each page or segment) and the processor hardware (which issues the interrupt and resolves the virtual address).
سؤال
Cache memory is a small high-speed memory unit that a processor can access less rapidly than main memory.
سؤال
There are ____ entries per page in the PMT.

A) 0
B) 1
C) 2
D) 5
سؤال
Consider the following page fault handler algorithm. Replace the * in the algorithm with ____. 1 If there is no free page frame
Then
Select page to be swapped out using page removal algorithm
Update job's Page Map Table
If content of page had been changed then
*
End if
End if
2 Use page number from step 3 from the Hardware Instruction Processing Algorithm to get disk address where the requested page is stored
3 Read page into memory
4 Update job's Page Map Table
5 Update Memory Map Table
6 Restart interrupted instruction

A) save page to main memory
B) write page to disk
C) mark page as being changed in PMT
D) choose another page
سؤال
The optimal selection of cache size and replacement algorithm can result in 80 to 90 percent of all requests being in the cache.
سؤال
If a particular demand paging configuration has 9 page interrupts out of 11 page requests, failure rate is ____.

A) 18%
B) 52%
C) 82%
D) 95%
سؤال
In demand paging when a job requires a certain page to be loaded and there is no empty page frame,____ .

A) A resident page must be swapped back into secondary storage.
B) The page cannot be loaded and the job will exit.
C) The job must wait until a page frame is freed by another job.
D) The page will share a page frame with another page from the same job.
سؤال
In general, when a job is allocated to the CPU its Page Map Table is loaded into main memory while the Segment Map Tables are loaded only as needed.
سؤال
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
سؤال
Assume that the Page Map Table below is in effect. The number of lines per page is 400. The actual memory location for line 433 is ____. Job Page Number Page Frame Number
0 8
1 10
2 5
3 11

A) 1
B) 33
C) 4000
D) 4033
سؤال
A page size that is too small will generate ____.

A) very long PMTs
B) excessive internal fragmentation
C) more difficult to calculate actual position
D) excessive external fragmentation
سؤال
The segmented/demand paged memory allocation scheme offers the logical benefits of segmentation, as well as the physical benefits of paging.
سؤال
When there is an excessive amount of page swapping between main memory and secondary storage, the operation becomes inefficient, which is called ____.

A) excessive demand paging
B) hot swapping
C) thrashing
D) overswapping
سؤال
The ____ 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
سؤال
Assume that four page frames are available and are numbered 1-4. Pages A-D have been loaded into page frames 1-4 in order. Assume that page E is requested.The page frame to be loaded into when the FIFO algorithm is used is ____.

A) 1
B) 2
C) 3
D) 4
سؤال
With demand paging, jobs are divided into equally sized ____ that initially reside in secondary storage.

A) pages
B) blocks
C) frames
D) sets
سؤال
If the page size is 100 lines,____ is the displacement for line 214 of a program.

A) 0.5
B) 2
C) 14
D) 21400
سؤال
When using the clock replacement policy, a page with a reference bit of ____ is replaced.

A) -1
B) 0
C) 1
D) 5
سؤال
One of the most important innovations of demand paging was that it made ____ feasible.

A) memory demand
B) virtual demand
C) virtual paging
D) virtual memory
سؤال
Assume that four page frames are available and are numbered 1-4. Pages A-D have been loaded into page frames 1-4 in order. The program has accessed the pages in the following order: B, D, A, C. Assume that page E is requested. The ____ page frame will be loaded when the LRU algorithm is used.

A) 1
B) 2
C) 3
D) 4
سؤال
During the second generation, programmers started dividing their programs into sections that resembled working sets, really segments, originally called roll in/roll out and now called ____.

A) undermaps
B) overmaps
C) underlays
D) overlays
سؤال
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
سؤال
There are ____associative registers.

A) two
B) five
C) ten
D) varies by system
سؤال
Consider the following four cases. The LRU policy,____, will be lease likely to swap. Modified Referenced Meaning
Case 1 0 0 Not modified AND not referenced
Case 2 0 1 Not modified BUT was referenced
Case 3 1 0 Was modified BUT not referenced
Case 4 1 1 Was modified AND was referenced

A) Case 1
B) Case 2
C) Case 3
D) Case 4
سؤال
The following phrase____,means that during any phase of its execution, the program references only a small fraction of its pages.

A) dynamic paging
B) structured programming
C) locality of reference
D) working set
سؤال
The cache hit ratio is ____, if the total number of requests is 10 and 6 of those are found in cache memory.

A) 6%
B) 10%
C) 60%
D) 100%
سؤال
____ 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
سؤال
____ gives users the appearance that their programs are being completely loaded in main memory during their entire processing time.

A) Segmenting
B) Virtual memory
C) Shared memory
D) Multithreading
سؤال
Studies have shown that having any ____, even a small one, can substantially improve the performance of the computer system.

A) cache
B) memory block
C) page block
D) block
سؤال
In the PMT, the ____ bit for all pages in memory is 1.

A) status
B) referenced
C) modified
D) frame
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/50
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 3: Memory Management: Virtual Memory
1
To find the exact position of an instruction in memory, after the page number has been calculated, the operating system refers to the job's PMT to find out which page frame contains the page.
True
2
To find the address of a given program line, the line number is multiplied by the page size.
False
3
To move in a new page, a resident page must be swapped back into primary storage.
False
4
A variation of the LRU page replacement algorithm is known as the clock page replacement policy because it is implemented with a circular queue and uses a pointer to step through the reference bits of the active pages, simulating a clockwise motion.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
5
The Job Table (JT) contains two entries for each active job: the size of the job and the memory location where its Page Map Table is stored.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
6
Demand paging requires that the Page Map Table for each job keep track of each page as it is loaded or removed from main memory.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
7
Paged memory allocation usually results in internal fragmentation, but never external fragmentation.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
8
The key to the successful implementation of demand paging is the use of a direct access memory device that can work directly with the CPU.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
9
Demand paging was the first widely used scheme that removed the restriction of having the entire job in memory from the beginning to the end of its processing.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
10
A page interrupt is generated when a new page is brought into memory.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
11
Every time an instruction is executed, or a data value is used, the operating system (or the hardware) must translate the job space address, which is relative, into its physical address, which is absolute.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
12
Each page of a job is actually stored in a page frame that can be located anywhere in available main memory.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
13
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
14
The first-in first-out (FIFO) page replacement policy will remove the pages that have been in memory the shortest.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
15
Demand paging offers a perfect solution to inefficient memory limitations.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
16
When using a FIFO scheme, more memory will always result in better performance.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
17
Within the Memory Manager the Segment Link Table lists details about each segment (one for each job).
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
18
The address of the beginning of a page frame is found by multiplying the page frame number by the number of frames.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
19
A job's working set is the set of pages residing in memory that can be accessed indirectly.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
20
One sector will hold one page of job instructions and fit into one page frame of memory.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
21
The use of virtual memory requires cooperation between the Memory Manager (which tracks each page or segment) and the processor hardware (which issues the interrupt and resolves the virtual address).
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
22
Cache memory is a small high-speed memory unit that a processor can access less rapidly than main memory.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
23
There are ____ entries per page in the PMT.

A) 0
B) 1
C) 2
D) 5
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
24
Consider the following page fault handler algorithm. Replace the * in the algorithm with ____. 1 If there is no free page frame
Then
Select page to be swapped out using page removal algorithm
Update job's Page Map Table
If content of page had been changed then
*
End if
End if
2 Use page number from step 3 from the Hardware Instruction Processing Algorithm to get disk address where the requested page is stored
3 Read page into memory
4 Update job's Page Map Table
5 Update Memory Map Table
6 Restart interrupted instruction

A) save page to main memory
B) write page to disk
C) mark page as being changed in PMT
D) choose another page
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
25
The optimal selection of cache size and replacement algorithm can result in 80 to 90 percent of all requests being in the cache.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
26
If a particular demand paging configuration has 9 page interrupts out of 11 page requests, failure rate is ____.

A) 18%
B) 52%
C) 82%
D) 95%
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
27
In demand paging when a job requires a certain page to be loaded and there is no empty page frame,____ .

A) A resident page must be swapped back into secondary storage.
B) The page cannot be loaded and the job will exit.
C) The job must wait until a page frame is freed by another job.
D) The page will share a page frame with another page from the same job.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
28
In general, when a job is allocated to the CPU its Page Map Table is loaded into main memory while the Segment Map Tables are loaded only as needed.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
29
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
30
Assume that the Page Map Table below is in effect. The number of lines per page is 400. The actual memory location for line 433 is ____. Job Page Number Page Frame Number
0 8
1 10
2 5
3 11

A) 1
B) 33
C) 4000
D) 4033
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
31
A page size that is too small will generate ____.

A) very long PMTs
B) excessive internal fragmentation
C) more difficult to calculate actual position
D) excessive external fragmentation
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
32
The segmented/demand paged memory allocation scheme offers the logical benefits of segmentation, as well as the physical benefits of paging.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
33
When there is an excessive amount of page swapping between main memory and secondary storage, the operation becomes inefficient, which is called ____.

A) excessive demand paging
B) hot swapping
C) thrashing
D) overswapping
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
34
The ____ 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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
35
Assume that four page frames are available and are numbered 1-4. Pages A-D have been loaded into page frames 1-4 in order. Assume that page E is requested.The page frame to be loaded into when the FIFO algorithm is used is ____.

A) 1
B) 2
C) 3
D) 4
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
36
With demand paging, jobs are divided into equally sized ____ that initially reside in secondary storage.

A) pages
B) blocks
C) frames
D) sets
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
37
If the page size is 100 lines,____ is the displacement for line 214 of a program.

A) 0.5
B) 2
C) 14
D) 21400
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
38
When using the clock replacement policy, a page with a reference bit of ____ is replaced.

A) -1
B) 0
C) 1
D) 5
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
39
One of the most important innovations of demand paging was that it made ____ feasible.

A) memory demand
B) virtual demand
C) virtual paging
D) virtual memory
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
40
Assume that four page frames are available and are numbered 1-4. Pages A-D have been loaded into page frames 1-4 in order. The program has accessed the pages in the following order: B, D, A, C. Assume that page E is requested. The ____ page frame will be loaded when the LRU algorithm is used.

A) 1
B) 2
C) 3
D) 4
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
41
During the second generation, programmers started dividing their programs into sections that resembled working sets, really segments, originally called roll in/roll out and now called ____.

A) undermaps
B) overmaps
C) underlays
D) overlays
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
42
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
43
There are ____associative registers.

A) two
B) five
C) ten
D) varies by system
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
44
Consider the following four cases. The LRU policy,____, will be lease likely to swap. Modified Referenced Meaning
Case 1 0 0 Not modified AND not referenced
Case 2 0 1 Not modified BUT was referenced
Case 3 1 0 Was modified BUT not referenced
Case 4 1 1 Was modified AND was referenced

A) Case 1
B) Case 2
C) Case 3
D) Case 4
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
45
The following phrase____,means that during any phase of its execution, the program references only a small fraction of its pages.

A) dynamic paging
B) structured programming
C) locality of reference
D) working set
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
46
The cache hit ratio is ____, if the total number of requests is 10 and 6 of those are found in cache memory.

A) 6%
B) 10%
C) 60%
D) 100%
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
47
____ 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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
48
____ gives users the appearance that their programs are being completely loaded in main memory during their entire processing time.

A) Segmenting
B) Virtual memory
C) Shared memory
D) Multithreading
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
49
Studies have shown that having any ____, even a small one, can substantially improve the performance of the computer system.

A) cache
B) memory block
C) page block
D) block
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
50
In the PMT, the ____ bit for all pages in memory is 1.

A) status
B) referenced
C) modified
D) frame
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.