What is Contiguous and Non Contiguous Memory Allocation?

Contiguous Memory Allocation : In contiguous memory allocation all the available memory space remain together at one place. It means  freely available memory partitions are not scattered here and there across the whole memory space.

Non-Contiguous Memory Allocation: In context to memory organization, non contiguous memory allocation means the available memory space is scattered here and there it means all the free available memory space is not together at one place. You can better understand with the help of Figure 2.

Introduction to memory allocation

In the above figure memory space corresponds to partition P1,P4 in freely available but it is not contiguous it is non contiguous. Allocation of non contiguous memory is done with the help of paging technique.

Keywords: Introduction to memory allocation, definition of contiguous and non-contiguous memory allocation,