Memory Management in OS
- 16Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
- spaceFlip card
- KI knew it
- DI didn't know it
- ←Previous card
- →Next card
What is Memory Management in an Operating System?
A method to manage primary memory (RAM) efficiently, including allocation, deallocation, and security.
Or swipe the card
16 cards
What is Memory Management in an Operating System?
A method to manage primary memory (RAM) efficiently, including allocation, deallocation, and security.
Why is RAM the primary focus of Memory Management?
Because RAM is the main memory where processes must reside for CPU execution, and it is directly connected to the CPU.
What are the three types of memory directly connected to the CPU?
Registers, cache memory, and RAM (primary memory).
Why is secondary memory (e.g., hard disk) not directly connected to the CPU?
Because secondary memory is much slower than the CPU, so faster memories (registers, cache, RAM) are placed between them.
Where are programs stored permanently, and what must happen for them to be executed?
Programs are stored in secondary memory. To be executed, they must be brought into RAM so the CPU can directly access them.
Define Degree of Multiprogramming (DoP).
The number of processes (programs) kept in RAM at a time.
What is the main benefit of a higher Degree of Multiprogramming?
Higher CPU utilization because if one process waits for I/O, another process can use the CPU, reducing idle time.
What are the two types of operations a process can perform?
CPU execution and I/O operations.
If a process spends fraction K of its time on I/O, what fraction of time does it use the CPU?
1 - K.
If there are n processes in RAM, each spending fraction K on I/O, what is the CPU utilization assuming all processes run concurrently?
1 - K^n.
In the numerical example with RAM = 4 MB, process size = 4 MB, and K = 0.7, what is the Degree of Multiprogramming and CPU utilization?
DoP = 1, CPU utilization = 30%.
In the numerical example with RAM = 8 MB, process size = 4 MB, and K = 0.7, what is the Degree of Multiprogramming and CPU utilization (as per the example)?
DoP = 2, CPU utilization ≈ 76%.
In the numerical example with RAM = 16 MB, process size = 4 MB, and K = 0.7, what is the Degree of Multiprogramming and CPU utilization?
DoP = 4, CPU utilization ≈ 94% (as per the example).
What is the relationship between RAM size, Degree of Multiprogramming, and CPU utilization?
Increasing RAM size allows more processes to be loaded, increasing the Degree of Multiprogramming, which in turn increases CPU utilization.
What are the main responsibilities of the Operating System in Memory Management?
Allocation and deallocation of memory to processes, and ensuring security (processes do not interfere with each other).
Why might bringing an entire process into RAM be inefficient?
Because the CPU may only need a small part of the process; bringing the entire process uses bus bandwidth and memory inefficiently.

Ask anything
We've read this whole study set, so questions about it get the best answers.