Paging refers to the division of address spaces into fixed size units and the logical addresses are in the form of tuples. On the other hand, segmentation is the dividing of address spaces into a defined number of segments.
Chat with our AI personalities
In computer operating systems that have their main memory divided into pages, paging (sometimes called swapping) is a transfer of pages between main memory and an auxiliary store, such as hard disk drive.[1] Paging is an important part of virtual memory implementation in most contemporary general-purpose operating systems, allowing them to use disk storage for data that does not fit into physical RAM. Paging is usually implemented as architecture-specific code built into the kernel of the operating system.
Segmentation:
Segmentation is one approach to memory management and protection in the operating system. It has been superseded by paging for most purposes, but much of the terminology of segmentation is still used, "segmentation fault" being an example. Some operating systems still have segmentation at some logical level although paging is used as the main memory management policy.
Paging:-
Paging is a memory-management scheme which allow the physical address of a process to be non-contiguous.
The basic implementation of paging involves breaking physical memory in fixed sized blocks called frame and breaking logical address (generated by CU) in fixed sized blocks called page. Usually page size and frame size is same. Every address generated by CPU is divided into two parts a) page number(p) and page offset(d). The page table is used a index in the page table. The page table contains the base address of each page in physical memory. This base address combines with the page offset (d) to locate the space in the physical memory.
This is simply what the paging is all about.......!!
And about the how the page number and page offset is divided and used in the determination of physical address and page table you should consult any good book.......
Thank you...
thev777@gmail.com
Paging occurs when the operating system swaps the contents of a portion of active memory (RAM) with an image of another portion of active memory that was written to disk (in the page file). Using this technique the operating system is able to run programs that require more memory (RAM) than actually exists in the hardware of the computer.