ProProfs - The Knowledge FREEway
CompTIA Home
 Network+ Exam
A+ Certification
Study Guide
Articles
Active Membership
Practice Questions
Practice Exams
Software
Tutorials & Tips
Cram Sheets
A+ Forum
A+ Wiki
A+ WebSchool
A+ Flashcards
A+ Quiz School
APlus Jobs
A+ Book Deals
Deals On Ebay
 
Google

A+ Test Prep Tutorials

The following online study guide is designed to help you with your Comptia A+ test prep. You can discuss any questions or comments that you may have, either on these study guides or on the Comptia A+ test on our community forum.

Virtual Memory (Cont...)

Click on the image to zoom

Click on the image to zoom

Paging and virtual memory:

Virtual memory is usually implemented by paging. In paging, the low order bits of the binary representation of the virtual address are preserved, and used directly. This is because the low order bits of the actual physical address; the high order bits are treated as a key to one or more address translation tables, which provide the high order bits of the actual physical address.

A range of consecutive addresses in the virtual address space whose size is a power of two will be translated in a corresponding range of consecutive physical addresses because of the above reason. The memory referenced by such a range is called a page.

The page size is typically in the range of 512 to 8192 bytes, though page sizes of 4 megabytes or larger may be used for special purposes. The operating system stores the address translation tables, the mappings from virtual to physical page numbers in a data structure known as a page table.

If a page is marked as unavailable and when the CPU tries to reference a memory location in that page, the MMU responds by raising an exception generally called as page fault with the CPU, which then jumps to a routine in the operating system. If the page is in the swap area, this routine invokes an operation called a page swap to bring in the required page.

 

Google   

 \n
   
Home  |  Site Map  |  Contact
Copyright © 2005-2011 ProProfs.com - Privacy & Terms