Paging is a process that is performed by the computer itself. The segmentation can be performed only in the case when a programmer provides inputs to the system. The process of getting a large linear address space for which you don’t have to purchase more physical memory is known as Paging. On the contrary, Segmentation is a process that caters the facility of broken up into logically sovereign address spaces to the programs and data. You will get the facility of sharing and protection in segmentation as well. The Paging procedure is not able to distinguish and protect the process and data on individual basis. With the help of Segmentation, you can obtain the functionality of distinguishing and separately protects process and data. The process of paging demands a 6-bit page value in order to select a proper entry in process page table. A 16-bit physical address is formed in paging. Quite the opposite, the segmentation process needs to have a 4-bit segment of a logical address necessary for the basic objective of selecting the proper entry in the process segment table.
What is Paging?
After critically examine the working of computer memory, you will find that it is divided into small partitions that have equal size known as page frames. At the time when a course of action is loaded, it digs up into pages with similar size as those earlier frames. After that these process pages are loaded into the frames. This whole course of action is known as paging. It is a system of memory management in computer operating systems. The main purpose of paging is to store the data for the prime goal of retrieving it whenever it is required. Since the system handles the Paging process by design, hence it is transparent to programmers.
What is Segmentation?
The allocation of computer memory is performed in various sizes that are commonly called segments. The size of the segment is depends upon the requirements for address space by the process. These segments are either separately confined or shared between the processes. Segmentation is basically a computer process in which the primary memory of the computer is divided known as sections or segments. These sections are commonly utilized in object files of compiled programs. If you are working as a programmer then you need to be aware of memory limits while working with the segmentation.
- The nearby range of memory addresses that is mapped to physical memory is known as page. An autonomous address space is called segment.
- Paging is a physical process while the segmentation is a logical one.
- The process of compilation on separate basis can never be performed in paging while the segmentation allows it separately.
- In paging, the processes are not capable of sharing between the users but this facility is available in segmentations.
- In the process of paging, only one linear address space is used. A lot of address spaces are utilized in segmentation.