What is Paging in os..?
What is Paging.??
External fragmentation is avoided by using the paging technique.
The logical address space of a process can be noncontiguous. The process is allocated physical memory
whenever it is executed.
Divide physical memory into fixed-sized blocks called frames (size is a power of 2, between 512
bytes and 8192 bytes).
Divide logical memory into blocks of the same size called pages.

To run a program of size n pages, need to find n free frames and load program.
When a process is to be executed, its pages are loaded into any available memory frame from
the backing store.
The backing store is divided into fixed-sized blocks that are of the same size as the memory
frames.
The address generated by CPU is divided into :
Page number (p) -- page number is used as an index into a page table which contains base
address of each page in physical memory.
Page offset (d) -- page offset is combined with the base address to define the physical memory
address.
Page Table :
The page table is a table that is maintained by the system. It contains the information on which
pages are in the main memory at a given time.
The Page Table Contains two Entries those are used as valid and invalid whether the Page is
Stored into the Physical Memory.
Most computers allow the page table to be very large. For these machines, the use of fast
registers to implement the page table is not feasible.
IF you want to ask any soluction you can DM me on Instgram : vishant_jain__
Facebook : vishant jain

Comments
Post a Comment