Overview
Unlike paging, which uses fixed-size blocks, segmentation divides memory into logical units like 'code,' 'data,' and 'stack.' Each segment can have a different length.
Comparison with Paging
- Paging: Transparent to the programmer, fixed size, avoids external fragmentation.
- Segmentation: Visible to the programmer (historically), variable size, can lead to external fragmentation.
Modern Use
Most modern systems use a combination of both, or primarily rely on paging for memory management.