Review
14 BEST Wireless Keyboard & Mouse Combo (2021 Update)
Wireless Keyboard and Mouse enables you to eliminate wires to make your workstation clean and...
Paging is a storage mechanism that allows OS to retrieve processes from the secondary storage into the main memory in the form of pages. In the Paging method, the main memory is divided into small fixed-size blocks of physical address, which is called frames.
The size of a frame should be kept the same as that of a page to have maximum utilization of the main memory and to avoid external fragmentation. Paging is used for faster access to data, and it is a logical concept.
In this tutorial, you will learn
Segmentation method works almost similarly to paging, only difference between the two is that segments are of variable-length whereas, in the paging method, pages are always of fixed size.
A program segment includes the program's main function, data structures, utility functions, etc. The OS maintains a segment map table for all the processes. It also includes a list of free memory blocks along with its size, segment numbers, and it's memory locations in the main memory or virtual memory.
Here, are differences between Paging and Segmentation method:
| Paging | Segmentation |
| A page is of the fixed block size. | A segment is of variable size. |
| It may lead to internal fragmentation. | It may lead to external fragmentation. |
| In Paging, the hardware decides the page size. | The segment size is specified by the user. |
| A process address space is broken into fixed-sized blocks, which is called pages. | A process address space Is broken in differing sized blocks called sections. |
| The paging technique is faster for memory access. | Segmentation is slower than paging method. |
| Page table stores the page data | Segmentation table stores the segmentation data. |
| Paging does not facilitate any sharing of procedures. | Segmentation allows for the sharing of procedures. |
| Paging fails to distinguish and secure procedures and data separately. | Segmentation can be able to separate secure procedures and data. |
| Paging address space is one dimensional | In segmentation, there is the availability of many independent address spaces |
| In paging, the user just provides a single integer as the address, that is divided by the hardware into a page number and offset. | In the segmentation method, the user specifies the address in two quantities 1)segment number 2)offset. |
Here, are pros/benefits of using Paging method
Here, are pros/benefits of Segmentation:
Here, are cons/drawbacks of Paging:
Here, are cons/drawbacks of Segmentation:
Wireless Keyboard and Mouse enables you to eliminate wires to make your workstation clean and...
What is Greedy Strategy? Greedy algorithms are like dynamic programming algorithms that are often...
The if else statement An if-else statement is a great tool for the developer trying to return an...
Email client is a software application that enables configuring one or more email addresses to...
Here are Elastic search interview questions for fresher as well as experienced candidates. 1) What...
Download PDF 1) Explain what is Model-View-Controller? MVC is a software architecture pattern for...