[理工] 清大106計系
以下截至106清大計系第5題
A student in a compiler design course proposes to the professor a project of
writing a compiler that will produce a list of page references that can be
used to implement the optimal page replacement algorithm. Is this possible ?
Why or why not ? Is there anything that could be done to improve paging
effiiency at run time ?
我的疑問:
之前我是寫opt置換法因為要得知未來page access順序才能得以實施,所以這題答案
impossible
但是過幾天再複習的時候我又多了一個想法:
這個學生不是在上compiler design的"課程"嗎?既然是課程,教授可以給他一串access順序
(好比考試的時候給你一組access順序問OPT法的page fault次數那樣),這樣不就行得通了?
這問題困擾我幾個小時了 麻煩大神說明一下我的盲點QQ
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 220.129.58.80
※ 文章網址: https://www.ptt.cc/bbs/Grad-ProbAsk/M.1549360705.A.866.html
推
02/05 18:26,
5年前
, 1F
02/05 18:26, 1F
→
02/05 18:27,
5年前
, 2F
02/05 18:27, 2F
→
02/05 18:27,
5年前
, 3F
02/05 18:27, 3F
→
02/05 18:29,
5年前
, 4F
02/05 18:29, 4F
→
02/05 18:30,
5年前
, 5F
02/05 18:30, 5F
推
02/05 20:12,
5年前
, 6F
02/05 20:12, 6F
→
02/05 20:12,
5年前
, 7F
02/05 20:12, 7F
→
02/05 20:39,
5年前
, 8F
02/05 20:39, 8F