



免费预览已结束,剩余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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 蚕豆生物制品开发项目可行性研究报告
- 2020-2025年中国浮船坞行业发展趋势预测及投资战略咨询报告
- 2025年中国背式转接件行业市场发展前景及发展趋势与投资战略研究报告
- 2025年中国空压机活塞环行业市场发展前景及发展趋势与投资战略研究报告
- 中国电镀废水处理行业投资研究分析及发展前景预测报告
- 中国排气管垫行业市场发展前景及发展趋势与投资战略研究报告(2024-2030)
- 中医院项目建设方案
- 2022-2027年中国装饰艺术玻璃行业市场深度分析及投资前景展望报告
- 中国自热暖手袋行业市场发展前景及发展趋势与投资战略研究报告(2024-2030)
- 稀贵金属资源化利用项目投资计划书
- 人员异地办公管理办法
- 劳务派遣与服务协议
- 2025年新修订治安管理处罚法课件
- 消费者权益保护培训课件
- DB11T 2454-2025 职业健康检查质量控制规范 生物样本化学物质检测
- 贸易公司员工职业操守行为准则制度
- 护理50项操作考核评分标准
- 电气安全基础知识安全培训
- 电网技术改造及检修工程定额和费用计算规定2020 年版答疑汇编2022
- 电网工程设备材料信息参考价2025年第一季度
- 农药化工项目可行性研究报告模板-用于立项备案拿地
评论
0/150
提交评论