In a typical scenario, the memory partitioning is done before the program is executed. This practice is possible when the memory requirement is known for that particular program. However, if the program consists of some dynamic data elements, the memory allocation cannot be determined at the beginning. In such cases, dynamic partitioning is employed.
Some of the advantages of dynamic partitioning include –
- No internal fragmentation.
- No limitation on the size of the process
- High degree of multiprogramming
The dynamic partition is also referred to as the program to which a partition has been assigned.
Example of usage – “As the program had many dynamic elements, the only way to create a memory partition for the application program, was to employ dynamic partitioning.”