Monday 9 November 2020

What are the differences between Paging and Segmentation in OS?

 

Differences between Paging and Segmentation:

Paging

Segmentation

The main memory is partitioned into frames or blocks.

The main memory is partitioned into segments.

The logical address space is divided into pages by compiler or a memory management unit.

The logical address space is divided into segments, specified by the programmer.

This scheme suffers from internal fragmentation for page breaks.

This scheme suffers from external fragmentation.

The operating system maintains a free frames list. So, it need not search for free frames.

The operating system maintains the particulars of available memory.

The operating system maintains a page map table for a mapping between frames and pages.

Operating system maintains a segment map table for mapping purposes.

This scheme does not support the user’s view of memory.

It supports user’s view of memory.

Processor uses the page number and displacement to calculate absolute address (P, D).

Processor uses the segment number and displacement to calculate the absolute address(S, D).

 Multi-level paging is possible.

Multi-level segmentation is also possible but no use.

No comments:

Post a Comment