※ 引述《mqazz1 (無法顯示)》之銘言:
: consider a variant of the RR scheduling algorithm where the entries in the
: ready queue are pointers to the PCBs
: 1. what would be the effect of putting two pointers to the same process
: in the ready queue?
: 2. what would be the major advantages and disadvantages of this scheme?
: 3. how would you modify the basic RR algorithm to achieve the same effect
: without the duplicate pointers?
: 請問有人會這題嗎?
: 謝謝!
1.在ready queue中兩個pointers將獲得較多使用CPU的時間
2.好處就是可在 RR scheduling algorithm
將重要的PROCESS提供較多使用CPU的時間
壞處當然就是會有不公平的情況產生
若有多個PROCEESS有兩個以上的POINTER
單一POINTER的PROCESS就可能拉長等待的時間
3.依照每個程式的重要性給予不同的time quantum
即可達到題目所述之方法
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 58.114.144.137
※ 編輯: cksh3300110 來自: 58.114.144.137 (03/29 00:50)