1What 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.
2Why is effective memory management important?
It is important to manage memory effectively for optimal system performance.
3What does the Memory Management Unit (MMU) do?
The MMU handles the mapping between logical (virtual) and physical memory.
4Name three techniques used for memory management.
Single tasking with overlay, fixed memory partitioning, and variable memory partitioning.
5What 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.
6How does single tasking with overlay handle new instructions?
New instructions are loaded into the space previously occupied by instructions that are no longer needed.
7What 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.
8What is fixed memory partitioning?
It divides the memory space into fixed-sized partitions, each of which may contain exactly one process.
9How is the degree of multiprogramming limited in fixed partitioning?
It is bounded by the number of partitions.
10What happens when a process terminates in fixed partitioning?
The partition it occupied becomes available for another process.
11What is a problem associated with fixed memory partitioning?
It can lead to internal fragmentation.
12What is variable memory partitioning?
Memory space is divided into variable-sized partitions, and a process is loaded wherever a large enough space is available.
13Name three allocation algorithms used in variable partitioning.
First Fit, Best Fit, and Worst Fit.
14What is a problem associated with variable memory partitioning?
It can lead to external fragmentation.
15What 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.
16What is external fragmentation?
Too many small-sized free spaces exist that are not contiguous, making them unusable even if total free space is sufficient.
17How can external fragmentation be resolved?
Through compaction, which shuffles all free memory spaces together to form a large, contiguous block.
18What 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.
19Which memory management technique commonly leads to internal fragmentation?
Fixed partitioning.