Paging VS Segmentation

Filter Course


Paging VS Segmentation

Published by: Zaya

Published date: 22 Jun 2021

Paging VS Segmentation Photo

Paging VS Segmentation

In Paging, a process address space is broken into fixed-sized blocks called pages. In Segmentation, a process address space is broken into varying-sized blocks called sections. Operating System divides the memory into pages. During segmentation, a logical address is divided into section number and section offset.

Paging divides the program into fixed-size pages. whereas, Segmentation divides the program into variable size segments. Paging is faster than segmentation.

S.N. Paging Segmentation
1 Non-Contiguous memory allocation Non-contiguous memory allocation
2 Paging divides the program into fixed-size pages. Segmentation divides the program into variable size segments.
3 OS is responsible The compiler is responsible.
4 Paging is faster than segmentation Segmentation is slower than paging
5 Paging is closer to Operating System Segmentation is closer to User
6 It suffers from internal fragmentation It suffers from external fragmentation
7 There is no external fragmentation There is no external fragmentation
8 The logical address is divided into a page number and page offset The logical address is divided into segment number and segment offset
9 The page table is used to maintain the page information. Segment Table maintains the segment information
10 Page table entry has the frame number and some flag bits to represent details about pages. Segment table entry has the base address of the segment and some protection bits for the segments.