Paging
1. What is the use of Paging in an Operating System?
Answer:
Paging is a memory management technique that is used to retrieve processes from secondary storage to main memory.
2. What is the basic advantage of Paging?
Answer:
The basic advantage of Paging is that it reduces external fragmentation, but it is not able to reduce internal fragmentation.
3. What is the effect of Paging?
Answer:
Paging helps in improving the performance of the system by improving the utilization of the memory and accessing the available memory present there.
Paging in Operating System
Paging is a memory management scheme that eliminates the need for a contiguous allocation of physical memory. The process of retrieving processes in the form of pages from the secondary storage into the main memory is known as paging. The basic purpose of paging is to separate each procedure into pages. Additionally, frames will be used to split the main memory. This scheme permits the physical address space of a process to be non – contiguous.
In paging, the physical memory is divided into fixed-size blocks called page frames, which are the same size as the pages used by the process. The process’s logical address space is also divided into fixed-size blocks called pages, which are the same size as the page frames. When a process requests memory, the operating system allocates one or more page frames to the process and maps the process’s logical pages to the physical page frames.
The mapping between logical pages and physical page frames is maintained by the page table, which is used by the memory management unit to translate logical addresses into physical addresses. The page table maps each logical page number to a physical page frame number.