0 votes
in Operating System by
Write a difference between paging and segmentation?

1 Answer

0 votes
by

S.NO

Paging

Segmentation

1.In paging, program is divided into fixed or mounted-size pages.In segmentation, the program is divided into variable-size sections.
2.For the paging operating system is accountable.For segmentation compiler is accountable.
3.Page size is determined by hardware.Here, the section size is given by the user.
4.It is faster in comparison of segmentation.Segmentation is slow.
5.Paging could result in internal fragmentation.Segmentation could result in external fragmentation.
6.In paging, logical address is split into that page number and page offset.Here, logical address is split into section number and section offset.
7.Paging comprises a page table which encloses the base address of every page.While segmentation also comprises the segment table which encloses the segment number and segment offset.
8.A page table is employed to keep up the page data.Section Table maintains the section data.
9.In paging, operating system must maintain a free frame list.In segmentation, the operating system maintains a list of holes in the main memory.
10.Paging is invisible to the user.Segmentation is visible to the user.
11.In paging, processor needs page number, offset to calculate the absolute address.In segmentation, the processor uses segment number, and offset to calculate the full address.
...