What is paging in OS? Explain the difference between paging and segmentation.
What is paging in OS? Explain the difference between paging and segmentation.
544
02-Apr-2023
Updated on 05-Apr-2023
Krishnapriya Rajeev
05-Apr-2023Paging is the process of transferring processes from secondary storage into the main memory in the form of pages. It is a strategy for memory management that eliminates the need for physical memory to be allocated in a contiguous manner.
The main memory is split into frames, and each procedure is split into multiple pages.
A few important points in regard to paging are:
Segmentation, like paging, is also a strategy for the non-contiguous allocation of memory. However, in segmentation, the processes in the secondary memory are divided into variable sizes (unlike fixed sizes in pagisThe segmenting). These partitions in the secondary memory are called segments.
The key differences between paging and segmentation are given below: