Professional Documents
Culture Documents
Memory Managment Os
Memory Managment Os
Memory Managment Os
MEMORY
1 WORD 1 WORD
I1 . . . I200 . . . I1000
E.g: Shop and Godown
Memory Management
It is method of managing “Primary memory”.
I1 . . . I200 . . . I1000
Secondary
CPU Main Memory
Hit % =90 10 ms 100 ms
MEMORY
1 WORD 1 WORD
ADDRESS SPACE
Address 1
Address 2
Address 3
• Process are placed inside RAM .
RAM
PROCESS 1 Process 1
.
Process n
PROCESS n
Logical Physical
Address Translate Address
Secondary
CPU Main Memory
Non-
Contiguous
Contiguous
Memory Allocation
S.M
• Two Policies for M.M
memory
Contiguous
allocation and P1 P1
10 KB
Advantages: Array
4 KB 2 KB 4 KB
Address Translation
Access very fast and easy P1= 5 KB
Disadvantage:
External fragmentation
First Non Contiguous allocation n
10 KB
4 KB 2 KB 4 KB
Link List
Advantages: P1= 5 KB pointer
No External fragmentation
Disadvantage:
Access time is very slow
Contiguous
P1
Contiguous Allocation
Internal Fragmentation
10 kb
P1
5 Kb 2 Kb 2 Kb 1Kb
P1= 4 Kb
Fixed Partition
No Internal Fragmentation
10 kb
P1 P2
4 Kb 3 Kb 3 Kb
Best
50 150 300 350 600
Worst
50 150 300 350 600
Variable Size Partition
First fit policy
25 125 50
300
P1=300
P2=25 P P P P After
P3=125 2 3 1 4
P4=50 50 150 300 350 600
Before
50 150 300 350 600
Before
50 150 300 350 600
Before
50 150 300 350 600