摘要
针对当前大多数嵌入式操作系统不能同时支持时间和事件双重触发的机制,对μC/OS-Ⅱ内核进行了深入研究,对μC/OS-Ⅱ的调度代码进行了分析,提出了将系统内核架构设计为上下两层,以时间触发部分为上层主要模块,事件触发部分为下层基础模块的层次性架构;从而使得系统核心的调度器既可以调度TT任务也可以调度ET任务;实验证明,该方法不仅能够支持时间和事件双重触发的任务调度,而且在不影响可靠性和确定性的情况下,提高了系统的灵活性和实时性。
At present,most of the embedded operating system cannot support both time-triggered and event-triggered mechanism.This paper analyzed the kernel ofμC/OS-II in deeply and the scheduling code,designed the kernel architecture into two layers,the upper layer is the time-trigged module and the lower is the event-trigged module.The time-triggered partition is the main processing section and the event-trigged partition is the base module section.This make the scheduler of the system not only dispatching the time-triggered tasks but also scheduling the event-trigged tasks.Experiments show that this method can not only support the double-triggered mechanism forμC/OS-II,but also improve the real-time performance and flexibility without affecting the reliability and certainty of the system.
作者
黄姝娟
朱怡安
刘白林
肖锋
Huang Shujuan;Zhu Yi-an;Liu Bailin;Xiao Fen(School of Computer Science and Engineering,Xi an Technological University,Xi’an 710021,China;School of Computer Science,Northwestern Polytechnical University,Xi'an 710072,China)
出处
《计算机测量与控制》
2018年第7期203-206,211,共5页
Computer Measurement &Control
基金
国家自然科学基金面上项目(61572392)
陕西省工业科技攻关项目(2015GY031)
民用飞机专项科研项目(MJ-2015-D-066)
关键词
嵌入式
操作系统
时间触发
事件触发
调度器
embedded system
multi-core
scheduling algorithm
scheduling model
real-time tasks