Opentopia Directory Encyclopedia Tools

Demand paging

Encyclopedia : D : DE : DEM : Demand paging


In computer operating systems, demand paging is a simple method of implementing virtual memory. In a system that uses demand paging, the operating system copies a page into physical memory only if an attempt is made to access it (i.e., if a page fault occurs). It follows that a process begins execution with none of its pages in physical memory, and many page faults will occur until most of a process's working set of pages is located in physical memory. This is an example of lazy loading techniques.

Advantages of demand paging:

Disadvantages: In unix systems such as Linux, demand paging is accomplished by the means of the mmap() system call. It is also used when executing new programs. The operating system maps the executable file (and its dependent libraries) into the address space of the newly executing program, without actually allocating any physical RAM for the contents of those files. When the mappings are read-only and shared, the program may actually run literally from the disk cache.

See also

References

 


From Wikipedia, the Free Encyclopedia. Original article here. Support Wikipedia by contributing or donating.
All text is available under the terms of the GNU Free Documentation License See Wikipedia Copyrights for details.

Search Titles
0123456789
ABCDEFGHIJ
KLMNOPQRST
UVWXYZ?

E-mail this article to:

Personal Message: