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
Consider a large web-based database. In some sense, Google is sort of like this. There might be many users who want to read from the database, but only a few users who are allowed

Q. Explain about Functions of Operating System? Functions of Operating System Operating system performs 3 functions as follows: 1.  Convenience:   Operating System mak

Explain the ThreadSwitchWithDelay Function used in Netware ThreadSwitchWithDelay( )   This command is used when threads are waiting for an event or resource but don't want t

Processes have valid and invalid entries on their page tables. The valid entries all point to some where "real" (e.g. a physical page, or some portion of disk in case of non-reside

Define the DosSleep(ms) Function used in the os/2 DosSleep()  suspends the currently executing  thread for some time interval specified in the  ms parameter. If a value of 0 is

Many early operating systems regarded processes as different timesharing users. The process abstraction is a popular way to organize concurrent programs, but it is not the only cho

Write note on process, process state? A process is in excess of the program code which is sometimes known as text section. It as well includes the current activity as represent

Windows admin need it Project Description: We want to protect an executable on operating system level , so the process could be visible among all users while the executable r


The term thread-safe in computer programming describes that routine or portion of the program that may be called from multiple programming threads without uncalled for interactions