



免费预览已结束,剩余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年湖南省市场监督管理局所属事业单位高层次人才招聘笔试历年参考题库附带答案详解
- 安徽电气工程职业技术学院《机电系统设计》2023-2024学年第二学期期末试卷
- 阜新高等专科学校《纸样设计与工艺(三)》2023-2024学年第二学期期末试卷
- 天津商业大学《小学课堂组织与管理》2023-2024学年第二学期期末试卷
- 丽江师范高等专科学校《生物化学G》2023-2024学年第二学期期末试卷
- 濮阳医学高等专科学校《工程软件应用》2023-2024学年第二学期期末试卷
- 宜昌科技职业学院《舞蹈基础训练》2023-2024学年第二学期期末试卷
- 辽宁轻工职业学院《软件文档写作》2023-2024学年第二学期期末试卷
- 上海中医药大学《汉俄翻译》2023-2024学年第二学期期末试卷
- 广州松田职业学院《软件设计综合训练》2023-2024学年第二学期期末试卷
- 成都设计咨询集团有限公司2025年社会公开招聘(19人)笔试参考题库附带答案详解
- 2024年湖南省长沙市中考英语真题(原卷版)
- 九一八事变课件
- 鄂尔多斯市水发燃气有限公司招聘笔试真题2024
- 2025年广东中考英语三年真题试题分析及备考建议(课件)
- 仓储管理考试试题及答案
- 中学生法制教育课件
- 2024游泳救生员具体考试内容及试题及答案
- 河北省唐山市、廊坊市2025年高三高考第二次模拟演练思想政治试卷(含答案)
- 工程据实结算合同协议
- 2025年山东省中考统考数学模拟试卷(含答案)
评论
0/150
提交评论