Example: Contiguous memory management with variable-sized partitions (Defragmentation)


The first memory is not partitioned, partitions are created as processes are loaded and have the same size of these, later partitions are free (when a process completes, for example) and are occupied by new processes, if a process is smaller than a partition, this is divided into two parts, the first one as large as the process and the other the remainder.


Process Size
Units
Duration
Time
P1 5 5
P2 8 4
P3 3 3
P4 15 ∞
P5 2 1
P6 20 ∞
P7 3 ∞
P8 10 ∞

Processes are allocated in the table order.

Comments: