作者avogau ( 假 装)
看板TransCSI
标题Re: [问题] 一些计概的问题
时间Sat Feb 21 01:17:45 2009
※ 引述《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