※ 引述《aquariusgirl (學,然後知不足)》之銘言:
: ※ [本文轉錄自 Prob_Solve 看板]
: 作者: aquariusgirl (學,然後知不足) 看板: Prob_Solve
: 標題: [問題] 一些計概的問題
: 時間: Fri Feb 20 23:24:29 2009
: 1.shell 和 CPU 和kernel的關係是什麼呀??
這個應該很好查
: 2.Assume that there are three periodic events in a real-time system.
: These three events occur with period 100,200,300 ms, respectively.
: These three events require 50,50,100 ms of CPU time, respectively.
: Show that this real-time system is not schedulable.
: 這題到底在問什麼?? 看不懂@@
因為 (50/100) + (50/200) + (100/300) > 1
所以不可schedulable
算法很簡單 把事件處理時間除以發生period
全部累加大於一就不可schedulable
詳細可以看恐龍第七版 P.682~P.683
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 114.45.61.4