作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2009, Vol. 35 ›› Issue (5): 278-279,. doi: 10.3969/j.issn.1000-3428.2009.05.095

• 开发研究与设计技术 • 上一篇    下一篇

μC/OSⅡ事件标志组中存在的问题及解决方法

朱旭东,张 健   

  1. (广东海洋大学软件学院,湛江 524088)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2009-03-05 发布日期:2009-03-05

Existing Problems of Event Flags of μC/OS Ⅱ and Solutions

ZHU Xu-dong, ZHANG Jian   

  1. (School of Software, Guangdong Ocean University, Zhanjiang 524088)
  • Received:1900-01-01 Revised:1900-01-01 Online:2009-03-05 Published:2009-03-05

摘要: 针对μC/OS Ⅱ中当多个任务同时满足一个事件标志组时,μC/OS Ⅱ提供的2种解决冲突方法都存在问题,该文提出分类比较的方法,根据事件标志组的等待类型分类,通过比较事件标志组的过滤器来决定多个任务是否使用同一个事件标志组,从根本上避免了多个任务同时满足一个事件标志组的情况出现,结果证明该方法解决了μC/OS Ⅱ中多个任务同时满足一个事件标志组时出现的冲突问题。

关键词: 嵌入式操作系统, 事件标志组, 等待类型, 过滤器

Abstract: When various conditions in the waiting list meet the need of an event flag simultaneously, μC/OS Ⅱ offers two solutions to resolve conflicts. However both the solutions provided by μC/OS Ⅱ have serious defects when analyzed closely. In order to resolve the conflict, this paper puts forward the method of classification and comparison. It classifies event flags according to waiting types, and compares the filters of event flags to decide whether various conditions use the same event flag, thus avoids radically the conflict that various conditions in the waiting list meet the need of an event flag simultaneously. The result shows that the method of classification and comparison can completely solve the problem.

Key words: embedded operating system, event flag, waiting type, filter

中图分类号: