CREATE OWN LIBRARY

Solution of External Fragmentation: Compaction     

 

Compaction

There is another solution is called compaction or defragmentation where reallocated all the processes together and reallocated all free memory together. 

 

 

# But the compaction method is not efficient because it is very time-consuming. A lot of time required to reallocate processes and free memory. 

 

Free-Space 

Since memory space is limited, we need to reuse memory and merge the free space of memory to utilize the memory free space properly. To keep track of free space, the system maintains a free-space list.

 

 

Two types of data-structure is there to maintains the holes or free space list is 

1. Bit Map

2. Doubly Linked List