l3


"/home/yossef/notes/Su/os2/l3.md"

path: Su/os2/l3.md

- **fileName**: l3
- **Created on**: 2026-01-03 19:58:11

This lecture covers Memory Management, which explains how an
operating system handles and organizes the computer's primary
memory to ensure programs run efficiently.

1. Core Concepts and Background

For a program to run, it must be brought from disk into
main memory and placed within a process. The CPU can only
directly access main memory and its internal registers.

2. Address Spaces and Mapping

A key concept in memory management is the distinction
between two types of addresses:

In an MMU scheme, a relocation register value is added
to every process-generated address to locate it in memory.

3. Dynamic Loading and Swapping

These techniques improve memory efficiency:

4. Memory Allocation and Fragmentation

Memory allocation often involves holes, which are
free blocks scattered throughout memory.

5. Paging and Segmentation

Two major noncontiguous memory management techniques:

Analogy to Solidify Understanding

Memory management is like a library:


Note

for the report(quiz and some answers) ./l3_report.md

mind map

images/l3_mind_map.png|500

continue:./l4.md
before:./l2.md