Memory Management

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/9

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

10 Terms

1
New cards

What is Memory Management?

  • Manages how data is stored and accessed by the computer.

  • Organizes data in memory to be used efficiently.

2
New cards

What is the Principle of Locality?

  • Programs frequently access the same data or data near each other.

  • Temporal locality: Same data accessed repeatedly.

  • Spatial locality: Data near recently accessed data is likely to be accessed soon.

3
New cards

How does the CPU interact with Memory?

  • Registers: Store immediate data for processing.

  • Cache: Temporary storage for quick access.

  • Main Memory: Primary storage for active data and programs

4
New cards

What are Registers and Caches?

  • Registers: Fastest memory for immediate CPU operations.

  • Cache: Speeds up data access between the CPU and RAM by storing active data.

5
New cards

What is Memory Abstraction?

  • Simplifies complex processes by focusing only on essential elements.

  • Uses logical and physical address spaces to manage memory effectively.

6
New cards

What is the Difference Between Logical and Physical Addresses?

  • Logical address: Generated by the CPU, seen by programs.

  • Physical address: Actual location in memory hardware.

7
New cards

What is a Memory Management Unit (MMU)?

  • Hardware that maps virtual addresses to physical addresses.

  • Essential for efficient data retrieval and security.

8
New cards

What is Dynamic Relocation?

  • Adjusts process addresses during runtime to optimize memory use.

  • Uses a relocation register to adjust each address generated.

9
New cards

What is Swapping?

  • Moves processes in and out of memory to manage space.

  • Ensures active processes are kept in memory while others are temporarily stored on disk.

10
New cards

What is Paging and How Does it Prevent Fragmentation?

  • Divides memory into fixed-size blocks (pages) to manage space efficiently.

  • Avoids external fragmentation by ensuring that each page fits into a size-matched frame in memory.