[理工] 清大104 計算機系統
想請問一下關於104清大計算機系統題目
2.
Consider a variant of the RR scheduling algorithm where the entries in the
ready queue are pointers to the PCBs.
a. What would be the effect of putting two pointers to the same process in
the ready queue?
b. What would be the major advantages and disadvantages of this scheme?
c. How would you modify the basic RR algorithm to achieve the same effect
without the duplicate pointers?
Answer:
a. In effect, that process will have increased its priority since by getting
time more often it is receiving preferential treatment.
b. The advantage is that more important jobs could be given more time, in
other words, higher priority in treatment. The consequence, of course, is
that shorter jobs will suffer.
c. Allot a longer amount of time to processes deserving higher priority. In
other words, have two or more quantums possible in the Round-Robin scheme.
有找到英文解答,但還是不懂他的意思。
請各位高手解惑!! 謝謝
也預祝大家大家考試順利!
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 116.241.201.20
※ 文章網址: https://www.ptt.cc/bbs/Grad-ProbAsk/M.1453625219.A.47C.html
→
01/24 17:23, , 1F
01/24 17:23, 1F
→
01/24 17:23, , 2F
01/24 17:23, 2F
推
01/24 22:29, , 3F
01/24 22:29, 3F
→
01/24 23:52, , 4F
01/24 23:52, 4F
→
01/24 23:53, , 5F
01/24 23:53, 5F
→
01/24 23:55, , 6F
01/24 23:55, 6F
→
01/24 23:56, , 7F
01/24 23:56, 7F
→
01/24 23:59, , 8F
01/24 23:59, 8F
→
01/25 00:00, , 9F
01/25 00:00, 9F
→
01/25 00:02, , 10F
01/25 00:02, 10F
→
01/25 00:04, , 11F
01/25 00:04, 11F
→
01/25 09:36, , 12F
01/25 09:36, 12F
推
01/26 21:43, , 13F
01/26 21:43, 13F
→
01/28 17:40, , 14F
01/28 17:40, 14F
討論串 (同標題文章)