Posts

Showing posts from October, 2019

What is Paging in os..?

Image
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 memor...