Memory Management

19 flashcardsby —Griffith—
Study these flashcardsFree · spaced repetition · iPhone, Android, Mac & web

All cards

1
What is the role of a memory manager?
A memory manager is responsible for keeping track of which parts of the memory are in use and which parts are not, so that they can be deallocated.
2
Why is effective memory management important?
It is important to manage memory effectively for optimal system performance.
3
What does the Memory Management Unit (MMU) do?
The MMU handles the mapping between logical (virtual) and physical memory.
4
Name three techniques used for memory management.
Single tasking with overlay, fixed memory partitioning, and variable memory partitioning.
5
What is single tasking with overlay?
A technique to allow a process to be larger than the size of physical memory by keeping only instructions and data needed at any given time in memory.
6
How does single tasking with overlay handle new instructions?
New instructions are loaded into the space previously occupied by instructions that are no longer needed.
7
What is a disadvantage of single tasking with overlay?
A process cannot take advantage of more memory if it is available, as the overlays are designed around a given amount of memory.
8
What is fixed memory partitioning?
It divides the memory space into fixed-sized partitions, each of which may contain exactly one process.
9
How is the degree of multiprogramming limited in fixed partitioning?
It is bounded by the number of partitions.
10
What happens when a process terminates in fixed partitioning?
The partition it occupied becomes available for another process.
11
What is a problem associated with fixed memory partitioning?
It can lead to internal fragmentation.
12
What is variable memory partitioning?
Memory space is divided into variable-sized partitions, and a process is loaded wherever a large enough space is available.
13
Name three allocation algorithms used in variable partitioning.
First Fit, Best Fit, and Worst Fit.
14
What is a problem associated with variable memory partitioning?
It can lead to external fragmentation.
15
What is fragmentation in memory management?
It happens when memory spaces are used in such a way that there are small pieces of memory left unused.
16
What is external fragmentation?
Too many small-sized free spaces exist that are not contiguous, making them unusable even if total free space is sufficient.
17
How can external fragmentation be resolved?
Through compaction, which shuffles all free memory spaces together to form a large, contiguous block.
18
What is internal fragmentation?
It occurs when extra space is allocated to a process than it actually needs, and the leftover space cannot be used elsewhere.
19
Which memory management technique commonly leads to internal fragmentation?
Fixed partitioning.
Study all 19 cards for free