摘要
汽车仪表中的嵌入式系统通常采用前后台循环设计模式,该模式下各任务执行频率强制相同,执行顺序无法改变,任务每次等待时间波动较大,难以保证实时性。为解决上述问题,利用高响应比优先(HRRF)任务调度算法的优点,对其进行改进,并将其应用在汽车仪表的软件设计中。把周期性任务按优先特性分类,实时更新各任务的等待时间和服务时间,考虑任务截止期错失,每次选取同类别中响应比最高的任务执行。实际应用表明,该方法调度开销小,实时性高,且方便维护和移植。
The foreground and background cycle mode is frequently used in the design of automotive instrument embedded system,by which the execution frequency of each system task is compulsive the same,the execution sequence can′t be changed,and each waiting time of the task fluctuates greatly,so it is difficult to guarantee the real.time performance of system task.In order to solve these problems,the task scheduling algorithm with highest response ratio first(HRRF)is optimized according to its advantages,and applied to the software design of automobile instrument.The periodic tasks are classified according to the priority characteristics.The waiting time and service time of each task are updated in real time.Considering the deadline missing of the task,the task with highest response ratio is selected in the same class for execution in every work period.The practical application result shows that the method has small scheduling overhead and high real.time performance,and is easy to maintenance and transplant.
作者
韩琛
刘斌
谢斌
蒋峥
HAN Chen;LIU Bin;XIE Bin;JIANG Zheng(MOE Engineering Research Center of Metallurgical Automation and Detecting Technology,College of Information Science and Engineering,Wuhan University ofScience and Technology,Wuhan 430081,China;Wuhan Baohua Display Technology Co.,Ltd.,Wuhan 430082,China)
出处
《现代电子技术》
北大核心
2019年第5期90-94,99,共6页
Modern Electronics Technique
基金
国家自然科学基金资助项目(61775172)
冶金自动化与检测技术教育部工程研究中心开放基金资助项目(MADT201702)~~
关键词
汽车仪表
高响应比优先
任务调度
任务优先特性分类
等待时间
服务时间
截止期错失
automobile instrument
highest response ratio first
task scheduling
task priority characteristics classification
waiting time
service time
deadline missing