Deck 16: Memory Management in Operating 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
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/25
Play
Full screen (f)
Deck 16: Memory Management in Operating Systems
1
The address of a page table in memory is pointed by___________
A)stack pointer
B)page table base register
C)page register
D)program counter
A)stack pointer
B)page table base register
C)page register
D)program counter
page table base register
2
Program always deals with___________
A)logical address
B)absolute address
C)physical address
D)relative address
A)logical address
B)absolute address
C)physical address
D)relative address
logical address
3
The page table contains___________
A)base address of each page in physical memory
B)page offset
C)page size
D)none of the mentioned
A)base address of each page in physical memory
B)page offset
C)page size
D)none of the mentioned
base address of each page in physical memory
4
What is compaction?
A)a technique for overcoming internal fragmentation
B)a paging technique
C)a technique for overcoming external fragmentation
D)a technique for overcoming fatal error
A)a technique for overcoming internal fragmentation
B)a paging technique
C)a technique for overcoming external fragmentation
D)a technique for overcoming fatal error
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
5
Operating System maintains the page table for___________
A)each process
B)each thread
C)each instruction
D)each address
A)each process
B)each thread
C)each instruction
D)each address
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
6
The main memory accommodates
A)operating system
B)cpu
C)user processes
D)all of the mentioned
A)operating system
B)cpu
C)user processes
D)all of the mentioned
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
7
What is the operating system?
A)in the low memory
B)in the high memory
C)either low or high memory (depending on the location of interrupt vector)
D)none of the mentioned
A)in the low memory
B)in the high memory
C)either low or high memory (depending on the location of interrupt vector)
D)none of the mentioned
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
8
In contiguous memory allocation
A)each process is contained in a single contiguous section of memory
B)all processes are contained in a single contiguous section of memory
C)the memory space is contiguous
D)none of the mentioned
A)each process is contained in a single contiguous section of memory
B)all processes are contained in a single contiguous section of memory
C)the memory space is contiguous
D)none of the mentioned
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
9
The relocation register helps in
A)providing more address space to processes
B)a different address space to processes
C)to protect the address spaces of processes
D)none of the mentioned
A)providing more address space to processes
B)a different address space to processes
C)to protect the address spaces of processes
D)none of the mentioned
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
10
The operating system and the other processes are protected from being modified by an already running process because
A)they are in different memory spaces
B)they are in different logical addresses
C)they have a protection algorithm
D)every address generated by the cpu is being checked against the relocation and limit registers
A)they are in different memory spaces
B)they are in different logical addresses
C)they have a protection algorithm
D)every address generated by the cpu is being checked against the relocation and limit registers
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
11
Transient operating system code is code that___________
A)is not easily accessible
B)comes and goes as needed
C)stays in the memory always
D)never enters the memory space
A)is not easily accessible
B)comes and goes as needed
C)stays in the memory always
D)never enters the memory space
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
12
Using transient code,___________the size of the operating system during program execution.
A)increases
B)decreases
C)changes
D)maintains
A)increases
B)decreases
C)changes
D)maintains
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
13
In fixed size partition, the degree of multiprogramming is bounded by
A)the number of partitions
B)the cpu utilization
C)the memory size
D)all of the mentioned
A)the number of partitions
B)the cpu utilization
C)the memory size
D)all of the mentioned
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
14
The first fit, best fit and worst fit are strategies to select a___________
A)process from a queue to put in memory
B)processor to run the next process
C)free hole from a set of available holes
D)all of the mentioned
A)process from a queue to put in memory
B)processor to run the next process
C)free hole from a set of available holes
D)all of the mentioned
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
15
In internal fragmentation, memory is internal to a partition and___________
A)is being used
B)is not being used
C)is always used
D)none of the mentioned
A)is being used
B)is not being used
C)is always used
D)none of the mentioned
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
16
A solution to the problem of external fragmentation is___________
A)compaction
B)larger memory space
C)smaller memory space
D)none of the mentioned
A)compaction
B)larger memory space
C)smaller memory space
D)none of the mentioned
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
17
Another solution to the problem of external fragmentation problem is to___________
A)permit the logical address space of a process to be noncontiguous
B)permit smaller processes to be allocated memory at last
C)permit larger processes to be allocated memory at last
D)all of the mentioned
A)permit the logical address space of a process to be noncontiguous
B)permit smaller processes to be allocated memory at last
C)permit larger processes to be allocated memory at last
D)all of the mentioned
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
18
If relocation is static and is done at assembly or load time, compaction
A)cannot be done
B)must be done
C)must not be done
D)can be done
A)cannot be done
B)must be done
C)must not be done
D)can be done
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
19
The disadvantage of moving all process to one end of memory and all holes to the other direction, producing one large hole of available memory is___________
A)the cost incurred
B)the memory used
C)the cpu used
D)all of the mentioned
A)the cost incurred
B)the memory used
C)the cpu used
D)all of the mentioned
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
20
External fragmentation will not occur when?
A)first fit is used
B)best fit is used
C)worst fit is used
D)no matter which algorithm is used, it will always occur
A)first fit is used
B)best fit is used
C)worst fit is used
D)no matter which algorithm is used, it will always occur
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
21
Sometimes the overhead of keeping track of a hole might be___________
A)larger than the memory
B)larger than the hole itself
C)very small
D)all of the mentioned
A)larger than the memory
B)larger than the hole itself
C)very small
D)all of the mentioned
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
22
When the memory allocated to a process is slightly larger than the process, then
A)internal fragmentation occurs
B)external fragmentation occurs
C)both internal and external fragmentation occurs
D)neither internal nor external fragmentation occurs
A)internal fragmentation occurs
B)external fragmentation occurs
C)both internal and external fragmentation occurs
D)neither internal nor external fragmentation occurs
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
23
Physical memory is broken into fixed-sized blocks called___________
A)frames
B)pages
C)backing store
D)none of the mentioned
A)frames
B)pages
C)backing store
D)none of the mentioned
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
24
Logical memory is broken into blocks of the same size called___________
A)frames
B)pages
C)backing store
D)none of the mentioned
A)frames
B)pages
C)backing store
D)none of the mentioned
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
25
Every address generated by the CPU is divided into two parts. They are
A)frame bit & page number
B)page number & page offset
C)page offset & frame bit
D)frame offset & page offset
A)frame bit & page number
B)page number & page offset
C)page offset & frame bit
D)frame offset & page offset
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck