Unit 5 Memory Management
Unit 5 Memory Management
Unit 5 Memory Management
MEMORY MANAGEMENT
This Memory Hierarchy Design is divided into 2 main types:
2. Best fit:-
In the best fit, allocate the smallest hole that
is big enough to process requirements. For
this, we search the entire list, unless the list
is ordered by size. Here in this example,
first, we traverse The complete list and find
the last hole 25KB is the best suitable hole
for Process A(size 25KB). In this method
memory utilization is maximum as
compared to other memory allocation
techniques.
3. Worst fit
In the worst fit, allocate the
largest available hole to process.
This method produces the
largest leftover hole. Here in this
example, Process A (Size 25
KB) is allocated to the largest
available memory block which
is 60KB. Inefficient memory
utilization is a major issue in the
worst fit.