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
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.
- What is the physical address in main memory that corresponds to virtual address 4096? and how do you get to that result?
- Same thing as question 1 but with virtual address 1024
- A page fault occurs when accessing a word in page 0, which page frame will be used to receive the virtual page 0?
© Stack Overflow or respective owner