作者bin272max (Ellison)
看板Grad-ProbAsk
標題[理工] OS page-fault
時間Wed Feb 20 18:33:07 2013
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
推 harry2258:答案錯了,之前的文有討論過 02/20 18:35
推 gn123:我看洪的分類題庫,如果是給byte address,應該要先轉block 02/20 18:36
→ gn123: 轉block address 02/20 18:37
→ gn123:@@所以是錯了喔? 02/20 18:37
→ bin272max:所以我想得是對的@@...謝謝:) 02/20 18:38