Paging 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:
It maps the logical addresses to physical addresses.
The number of entries in the page table and a number of pages in the logical address space are the same.
The page size is equal to the frame size.
The page table entries contain the frame number.
All page tables are placed in the main memory
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:
Paging
Segmentation
It is a physical unit of information.
It is a logical unit of information.
The program is divided into pages of fixed size.
The program is divided into segments of variable size.
Paging is handled by the operating system.
Segmentation is handled by the compiler.
The size of the pages are determined by the hardware.
The sizes of the segments are defined by the user.
Paging is faster than segmentation.
Segmentation tends to be slower than paging.
It can cause internal fragmentation.
It can lead to external fragmentation.
Page table comprises the base address of every page.
Segment table comprises The pagethe segment numbers and segment offset.
The process of paging is invisible to the user.
The process of segmentation is visible to the user.
It cannot handle data structures efficiently.
It is capable of handling data structures efficiently.
Markdown for AI
A clean, structured version of this page for AI assistants and LLMs.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
Paging 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: