[理工] [OS] 97交大資聯

看板Grad-ProbAsk作者時間14年前 (2010/03/08 17:20), 編輯推噓6(601)
留言7則, 6人參與, 最新討論串1/3 (看更多)
問答第三題 3. Page replacement mechanisms designed to handle page faults. Consider a reference string 1,0,2,1,2,3,0,3,2,4,0,3,0,2,1,0,7 and the system has three frames that are initially empty. if the second-chance algorithm is applied, the number of page faults is ____. 我算9次 頂X答案感覺又錯了,麻煩大家跟我對看看 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 118.171.78.7

03/08 17:24, , 1F
我算11次= =
03/08 17:24, 1F

03/08 17:30, , 2F
我也算9次耶
03/08 17:30, 2F

03/08 17:33, , 3F
看錯~9次沒錯!!
03/08 17:33, 3F

03/08 17:35, , 4F
9次
03/08 17:35, 4F

03/08 17:36, , 5F
9 +1
03/08 17:36, 5F

03/08 17:46, , 6F
9次
03/08 17:46, 6F

03/11 21:36, , 7F
用FIFO為base解好像是9次 解答好像用LRU當base= =
03/11 21:36, 7F
文章代碼(AID): #1BbC5qjY (Grad-ProbAsk)
文章代碼(AID): #1BbC5qjY (Grad-ProbAsk)