Chapter 6 Memory Managment and Virtual Memory New 2023
Chapter 6 Memory Managment and Virtual Memory New 2023
Fixed Partitioning
Dynamic Partitioning
7
Memory Management: Partitioning
Fixed Partitioning
Dynamic Partitioning
Unequal-size partitioning.
a) A part of memory with five processes and three holes. The tick marks show
the memory allocation units. The shaded regions (0 in the bitmap) are free.
(b) The corresponding bitmap.
(c) The same information as a list.
15
MM using Linked List
Physical memory
Divided into frames
The optimal algorithm uses the time when a page is to be used next
FIFO uses the time when a page was brought into memory
LRU – use the recent past as an approximation of the near future.
Replace the page that has not been used for the longest period of time.
Counter implementation
◦ Every page entry has a counter; every time page is referenced
through this entry, copy the clock into the counter.
◦ When a page needs to be changed, look at the counters to
determine which one is the smallest value and use that frame.
29
30
End of Chapter 6