Virtual Memory and Paging

Posted by Kenshin on Stack Overflow See other posts from Stack Overflow or by Kenshin
Published on 2010-04-19T23:04:12Z Indexed on 2010/04/19 23:13 UTC
Read the original article Hit count: 355

Filed under:
|
|

Hello, I am doing some exercices to understand how the virtual memory and paging works, my question is as follows :

Suppose we use a paged memory with pages of 1024 bytes, the virtual address space is of 8 pages but the physical memory can only contain 4 frames of pages. Replacement policy is LRU.

  1. What is the physical address in main memory that corresponds to virtual address 4096? and how do you get to that result?
  2. Same thing as question 1 but with virtual address 1024
  3. A page fault occurs when accessing a word in page 0, which page frame will be used to receive the virtual page 0?

Page Image

© Stack Overflow or respective owner

Related posts about memory

Related posts about paging