Demand paging, Operating System


Demand paging gives that pages could only be brought into memory if the running process acts them. This is usually referred to as lazy evaluation as only those pages operated by the process are swapped from secondary storage to main memory. Contrast this to accurate swapping, where all memory for a process is changed from secondary storage to main memory in the mean while the process startup.

Usually, to gain this process a page table implementation is needed. The page table maps logical storage to physical storage. The page table uses a bitwise operator to check if a page is invalid or valid. A valid page is one that currently has in main memory. An invalid page is one that currently has in secondary storage. When a process tries to accept a page, the following steps are usually followed:

  • Try to access page.
  • If page is valid then continue processing instruction as normal.
  • If page is invalid then a page-fault trap happens.
  • Check if the memory reference is a valid reference to a location on secondary memory. If not, the process is ended.



1735_Demand Paging.png

Posted Date: 7/30/2012 1:14:57 AM | Location : United States

Related Discussions:- Demand paging, Assignment Help, Ask Question on Demand paging, Get Answer, Expert's Help, Demand paging Discussions

Write discussion on Demand paging
Your posts are moderated
Related Questions

What is the information associated with an open file? Various pieces of information are associated with  an open file which may be: File pointer Disk location of th

Define the Division of Labour between Client and Server Given our definition of client - server as the interaction between dispersed application logic components it must be not

Crumbles Bakery needs to decide how many and what types of cupcakes to make today. Currently, they make two types of cupcakes: chocolate cupcakes and carrot cake cupcakes. Chocolat

Explain how the os implements virtual memory phenomenon.

Explain Load Balancing Client Server Components When migration functionality from the client - only model to the client - server model, care must be taken not over-or underutil

What do you mean by semaphore?  Semaphore : A synchronization variable that acquires on positive integer values. Invented by the Dijkstra P (semaphore): an atomic proce

Operating Systems 1. Explain single Partition Allocation and Multiple Partition Allocation. 2. What do you mean by PCB? What useful information is available in PCB? 3. De

Write a C program that illustrates the creation of child process using fork system call. One process finds sum of even series and other process finds sum of odd series.