0
1.2kviews
Explain the difference between paging and Segmentation.
1 Answer
0
12views

Difference between Paging and Segmentation

Sr. No. Paging Segmentation
1 Paging divides the program into fixed-size pages. Segmentation divides the program into variable size segments.
2 Operating System divides the memory into pages. Compiler is responsible to calculate the segment size, the virtual address, and the actual address.
3 Page size is determined by available memory. Section size is determined by the user.
4 Paging is invisible to the user. Segmentation is visible to the user.
5 Paging is closer to Operating System Segmentation is closer to User
6 Paging technique is faster in terms of memory access. Segmentation is slower than paging.
7 Paging can cause internal fragmentation as some pages may go underutilized. Segmentation can cause external fragmentation as some memory blocks may not be used at all.
8 There is no external fragmentation There is no internal fragmentation
9 Logical address is divided into a page number and page offset Logical address is divided into segment number and segment offset
10 In paging, the processor needs page number, offset to calculate absolute address. In segmentation, the processor uses segment number, offset to calculate full address.
11 Page table is used to maintain the page information. Segment Table maintains the segment information
12 In paging, the operating system must maintain a free frame list. In segmentation, the operating system must maintain a list of holes in the main memory.
13 Paging does not facilitate any sharing of procedures. Segmentation allows for the sharing of procedures.
14 Paging fails to distinguish and secure procedures and data separately. Segmentation can be able to separate secure procedures and data.
15 In paging address space is one dimensional In segmentation, there is the availability of many independent address spaces
16 In paging, a programmer cannot efficiently handle data structure. It segmentation a programmer can efficiently handle data structures.
17 In paging protection is hard to apply. In segmentation protection is easy to apply for protection.
Please log in to add an answer.