1. Home
  2. Explore
  3. Computer Science
  4. Memory Management in OS

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Memory Management in OS

  • 16Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Memory Management Basics
  • spaceFlip card
  • KI knew it
  • DI didn't know it
  • ←Previous card
  • →Next card

What is Memory Management in an Operating System?

Tap to flipClick to flipspace

A method to manage primary memory (RAM) efficiently, including allocation, deallocation, and security.

Or swipe the card

16 cards

  1. What is Memory Management in an Operating System?

    A method to manage primary memory (RAM) efficiently, including allocation, deallocation, and security.

  2. 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.

  3. What are the three types of memory directly connected to the CPU?

    Registers, cache memory, and RAM (primary memory).

  4. 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.

  5. 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.

  6. Define Degree of Multiprogramming (DoP).

    The number of processes (programs) kept in RAM at a time.

  7. 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.

  8. What are the two types of operations a process can perform?

    CPU execution and I/O operations.

  9. If a process spends fraction K of its time on I/O, what fraction of time does it use the CPU?

    1 - K.

  10. 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.

  11. 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%.

  12. 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%.

  13. 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).

  14. 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.

  15. 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).

  16. 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.

Card 1 of 16
Card 1 of 16

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent