免费预览已结束,剩余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河北唐山中心医院心电图室急聘英才2人考试笔试备考试题及答案解析
- 2025年河南省水利水电学校招聘工作人员6名笔试考试参考试题及答案解析
- 2025内蒙古锡林浩特市神墨教育招聘8人笔试考试备考题库及答案解析
- 2026年陕西航天职工大学单招职业适应性测试题库参考答案详解
- 2026年宝鸡中北职业学院单招职业倾向性测试题库及参考答案详解1套
- MOOC 理解马克思-南京大学 中国大学慕课答案
- 集分水器安装技术交底
- 智能家居ppt模板
- 建设规模和项目特征表
- 1389国开电大本科《管理英语4》历年期末考试试题及答案汇编(珍藏版)
- 企业供电系统及运行(第六版)完教学课件完整版电子教案
- 气动冲床设备日常点检标准作业指导书
- 固体物理第九章
- 维修电工实操考试
- 高速铁路电力牵引供电工程施工技术指南2010(共93页)
- 石油钻井工技师理论知识试题
评论
0/150
提交评论