Segmentation with paging is a memory management technique that combines both segmentation and paging to overcome their individual limitations. A program is first divided into logical segments, and each segment is further divided into fixed-size pages. This approach maintains the logical view of segmentation while reducing external fragmentation using paging.
Combines segmentation and paging techniques
Divides program into segments, then segments into pages
Uses segment table and page tables for address translation
Reduces external fragmentation while maintaining logical structure
Working of Segmentation
A process is generally divided into four segments, namely - code, data, stack and heap.
The memory management unit (MMU) first checks the segment table β finds the base of the page table β then uses the page number to locate the frame β finally combines with offset to form the physical address.