摘要
针对μC/OS的特点给出了一种基于优先级继承协议解决优先级逆转问题的方案。μC/OS作为一种应用广泛的嵌入式实时操作系统,是基于优先级的可抢占的调度方案的,不可避免地存在优先级逆转的问题。解释了优先级逆转发生的原因,简单分析了解决该问题的方案,并在分析C/OS运作原理的基础上,针对μC/OS的特点实现了基于优先级继承协议的互斥向量,为解决μC/OS优先级逆转问题提出了另外一种可行的方案。最后通过2个简单的实验,在S3C4510平台验证了该方案的正确性与可行性。
A specified solution is worked out for μC/OS to solve priority inversion based on priority inheritance protocols. The μC/OS, which is a widely-used embedded real-time system, is based on a preemptive priority scheduling. The priority inversion problem exists in μC/OS. While the reason of priority inversion is explained, and some solutions is simply analyzed, a priority-inheritance mutex for μC/OS is implemented based on the principle of μC/OS, which provided another solution to solve the priority inversion problem. Finally, two simple experiments validated the feasibility and correctness of this solution.
出处
《计算机工程与设计》
CSCD
北大核心
2008年第8期1990-1993,共4页
Computer Engineering and Design