



免费预览已结束,剩余1页可下载查看
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1 ECTE431/ECTE931: REAL-TIME COMPUTING Tutorial 2: Priority-driven Scheduling of Periodic Tasks Solution 1. Give two different explanations of why the periodic tasks (2,1), (4,1) and (8,2) are schedulable by the rate-monotonic algorithm. Solution: Using schedulable utilisation test The total utilisation: 1/2 + 1/4 + 2/8 = 1. Because the total utilisation is less than or equal to 1 and this is a “simply periodic” task set, the task set is schedulable with the RM algorithm. Using exhaustive scheduling simulation 2 2. A system consists of three preemptable periodic tasks T1 = (3, 1), T2 = (5, 2) and T3 = (8,3) a) What is the total utilisation? b) Construct the earliest-deadline-first schedule for this system for the time interval 0, 32). Label all missed deadlines. c) Construct a rate-monotonic schedule for this system in the interval 0, 32). Label all missed deadlines. d) Suppose we want to reduce the execution time of task T3 to make the system schedulable with the EDF algorithm. What is the maximum execution time of task T3? d) Suppose we want to reduce the execution time of task T3 to make the system schedulable with the RM algorithm. What is the maximum execution time of task T3 according to the schedulable utilisation test? Solution: a) U = 1/3 + 2/5 + 3/8 = 1.1083 1. Therefore the task set is not schedulable and there will be missed deadlines. b) EDF schedule 3 c) RM schedule d) EDF Maximum utilisation for T3: 1 1/3 2/5 = 0.2667 Maximum execution time for T3: 0.2667 8 = 2.1333 e) RM Maximum utilisation for T3 (given that URM(3) = 0.780) 0.780 - 1/3 2/5 = 0.0467 Maximum execution time for T3: 0.0467 8 = 0.3733 4 3. The periodic tasks (3,1), (4,2), and (6,1) are scheduled according to the rate-monotonic algorithm. Draw the time-demand functions of the tasks. Are the tasks schedulable? Solution: Task 1: 1( ) 1, 0 3w tt= Task 2: 2( ) 21, 0 4 3 t w tt =+ T2. Use the time-demand analysis, determine a) Whether the tasks are schedulable? b) The maximum execution time of task T2 that makes all tasks schedulable? Solution: a) Task T1: 1( ) 1, 0 4w tt= Task T3: 3( ) 31, 0 10 4 t w tt =+ Task T2: 2( ) 313, 0 7 410 tt w tt =+ + 01234567891011 0 1 2 3 4 5 6 7 8 9 10 11 t Time Demand Functions w1(t) w3(t) w2(t) f(t)=t Tasks T1 and T3 are
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025旅行社合规执行旅游合同
- 保健品代理商加盟协议
- 2025标准设备供应合同范本示例
- 2025版权输出合同样本
- 2025年民用爆破器材租赁合同范本
- 2025年合同研究组织项目建议书
- 捣蛋小孩受罚记800字13篇
- 六年级散文静待花开750字13篇
- 周期循环计算题目及答案
- 智慧树知道网课《电气控制技术与PLC》课后章节测试答案
- 80年血火淬炼此刻亮剑正当时:纪念中国人民抗日战争暨世界反法西斯战争胜利80周年阅兵仪式对初中生的启示-2025-2026学年初中主题班会
- 2025-2026学年西师大版(2024)小学数学一年级上册(全册)教学设计(附目录P227)
- 全球热泵产业发展报告2025
- 辅警考试真题(含答案)
- 商业地产项目数字化运营与客户体验提升策略研究报告
- 2025新疆天泽和达水务科技有限公司部分岗位社会招聘28人笔试模拟试题及答案解析
- 基于多元线性回归的国内旅游收入影响分析-以江西省为例
- 巧堆肥劳动课件
- T/CNFAGS 16-2024绿色甲醇分级标准(试行)
- 中国旅游地理(第四版)中职PPT完整全套教学课件
- 统编本四年级上册语文课堂作业本参考答案
评论
0/150
提交评论