摘要
针对μC/OSⅡ中当多个任务同时满足一个事件标志组时,μC/OSⅡ提供的2种解决冲突方法都存在问题,该文提出分类比较的方法,根据事件标志组的等待类型分类,通过比较事件标志组的过滤器来决定多个任务是否使用同一个事件标志组,从根本上避免了多个任务同时满足一个事件标志组的情况出现,结果证明该方法解决了μC/OSⅡ中多个任务同时满足一个事件标志组时出现的冲突问题。
When various conditions in the waiting list meet the need of an event flag simultaneously, uC/OS Ⅱ offers two solutions to resolve conflicts. However both the solutions provided by uC/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.
出处
《计算机工程》
CAS
CSCD
北大核心
2009年第5期278-279,282,共3页
Computer Engineering
基金
广东省高等教育教学改革工程基金资助项目(BKYBJG20060257)
广东海洋大学2008教育教改基金资助项目(XJG200818)