作者bjk (Up2u)
看板Grad-ProbAsk
标题Re: [理工] [OS]-rate monotonic
时间Tue Feb 7 19:59:03 2012
http://en.wikipedia.org/wiki/Rate-monotonic_scheduling
The rate monotonic priority assignment is optimal meaning that if any static
priority scheduling algorithm can meet all the deadlines, then the rate
monotonic algorithm can too. The deadline-monotonic scheduling algorithm is
also optimal with equal periods and deadlines, in fact in this case the
algorithms are identical; in addition, deadline monotonic scheduling is
optimal when deadlines are less than periods.[4]
even period time cpu time
p1 50 25
p2 80 35
rate monotonic不可排
EDF(earliest-deadline first)可以排
我好像有听说rate monotonic不可排,那其他排班法则也都不可排
能否解是一下
--
When we toss a coin , we obtain either head or tail. Now we toss a coin 5
times. There are 2^5 possible outcomes. How many of them contain no two
consecutive heads?
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 203.70.50.18
1F:→ metalalive:这个是恐龙本 real-time system 那章用的例子 02/07 20:23
2F:→ metalalive:这要实际trace一下才知道 (还是说有更好的判断方式?) 02/07 20:28
我是想问说这个例子
rate monotonic不可排
EDF(earliest-deadline first)可以排
但是我听说只要,rate monotonic不可排,那就没有排班法则可以排了
※ 编辑: bjk 来自: 203.70.50.18 (02/07 20:54)
3F:推 rayway30419:rate monotonic的条件是static EDF不是唷 02/07 20:58
4F:→ bjk:3QQ 02/07 21:29
5F:推 jim055006:我记得他有一个公式可以判断 02/07 23:56
6F:→ jim055006:2[(2^n^-1)-1],n代process个数,要是cpu utilization 02/07 23:58
7F:→ jim055006:小於等於那个式子,则rate monotonic可以排 02/07 23:59