[理工] OS page-fault
Assume that a demand-paging system has
3 page frames,and the size of a page frame is
10bytes.The memory reference string is as follows:
addr:70,01,12,22,01,30,02,30,22,12
what are the page fault numbers under the following page replacment strategies?
(1)Optimal
(2)LRU
我想請問的是...
題目中提到一個page frame是10bytes
意思是不是一個page frame內有10個byte addr?
那是否應該先把上面那串byte addr轉成page frame No.
然後再求page fault的次數?
因為我看解答是沒轉就直接算,這樣的話題目提的 一個page frame是10bytes
不是就沒意義了嗎?
ps.觀念問題很多,很感謝大家每次都很耐心回答我:)
祝大家最後的考試順利
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 115.80.14.145
推
02/20 18:35, , 1F
02/20 18:35, 1F
推
02/20 18:36, , 2F
02/20 18:36, 2F
→
02/20 18:37, , 3F
02/20 18:37, 3F
→
02/20 18:37, , 4F
02/20 18:37, 4F
→
02/20 18:38, , 5F
02/20 18:38, 5F