Operating SystemComputer Science & Information Technology

What is paging?

Paging is static memory allocation technique that permits the physical address space of a process to be non contiguous. The technique of mapping CPU generated logical address to physical address is called as paging.

The paging will implemented in the hardware level.

If logical address is same as physical address then no hardware support of paging is required.

Frame (Physical Page or Page Frame): A frame is a unit of physical memory. Physical memory is divided into blocks of same size called frames.

Page (Virtual page or Logical page): A page is a unit of logical memory of a program. Logical memory is divided into blocks of same size called pages.

When a new process arrives, its size (in pages) is determined. If the process has n pages in logical memory then n frames must be available in the physical memory.

What is Segmentation?

Paging does not follow user’s view of memory allocation. To achieve user’s view of memory allocation, segmentation is used.

Instead of dividing memory into equal-sized pages, virtual address space is divided into variable-length segments. Segments are variable-length modules of a program that correspond to logical units of the program.

Segment table

What is Demand Paging?

Load a page into memory only when it is needed (when it is referenced). The virtual memory manager swaps in a page of an executing process whenever the execution of a process references a page that is not in physical memory. Any unused page in physical memory will normally be swapped out to disk.

 

<< Previous | Next >>
Must Read: What is an operating system and its types?

 

Dear Aspirants,
Your preparation for GATE, ESE, PSUs, and AE/JE is now smarter than ever — thanks to the MADE EASY YouTube channel.
This is not just a channel, but a complete strategy for success, where you get toppers strategies, PYQ–GTQ discussions, current affairs updates, and important job-related information, all delivered by the country’s best teachers and industry experts.
If you also want to stay one step ahead in the race to success, subscribe to MADE EASY on YouTube and stay connected with us on social media.
MADE EASY — where preparation happens with confidence.

MADE EASY

MADE EASY is a well-organized institute, complete in all aspects, and provides quality guidance for both written and personality tests. MADE EASY has produced top-ranked students in ESE, GATE, and various public sector exams. The publishing team regularly writes exam-related blogs based on conversations with the faculty, helping students prepare effectively for their exams.

Leave a Reply

Your email address will not be published. Required fields are marked *