[理工] 作业系统pagetable、转换位址、pagefault

楼主: ifooleru (i服了u)   2015-01-14 21:21:41
有一题是这样问的
The page table shown below is for a system with 16 bit logical and physical
address and with 192 bytes pages.
The reference bit is set to 1 when the page has been referenced.
The page replacement is localized second chance, next victim is page 0,
and the order is from 0 to 7. All numbers are decimal.
Then the process access the following address (in hexadecimal) sequentially,
0x2145, 0x5A13, and 0x78B2.
(a) convert the addresses to physical addresses.
(b) draw the page table after these three memory accesses.
page frame valid/invalid reference bit
0 3 v 1
1 2 v 0
2 0 v 0
3 0 i 0
4 5 v 0
5 6 v 1
6 0 i 0
7 0 i 0
这题是以virtual memory的概念下去处理但是好像又将memory management
的原理全部都含括进来去做logical转physical位址...
所以只要是invalid加上bit为0的优先当做victim吗?该怎么解这题?

Links booklink

Contact Us: admin [ a t ] ucptt.com