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

计算机工程 ›› 2007, Vol. 33 ›› Issue (19): 57-59. doi: 10.3969/j.issn.1000-3428.2007.19.020

• 软件技术与数据库 • 上一篇    下一篇

μC/OS-II实时系统任务调度优化

徐 亮,徐中伟   

  1. (同济大学电子与信息学院,上海 200331)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2007-10-05 发布日期:2007-10-05

Improvement on μC/OS-II Real-time System Task Scheduling

XU Liang, XU Zhong-wei   

  1. (College of Electronics and Information, Tongji University, Shanghai 200331)
  • Received:1900-01-01 Revised:1900-01-01 Online:2007-10-05 Published:2007-10-05

摘要: 使用实时内核时,优先级的反转问题是实时系统中出现得最多的问题。为了解决这一问题,操作系统必须动态地提升获得资源的任务的优先级。该文分析了μC/OS-II的任务调度机制,提出了一种基于优先级继承提升的策略用以解决优先级的反转问题,从而优化了实时操作系统的任务调度,增强了其对高优先级任务调度的实时性。

关键词: 实时任务, 优先级反转, 调度, 信号量, 优先级继承提升

Abstract: Priority inversion is the most common problem occurring in real-time system when using a real-time kernel. In order to solve the problem, the operation system must dynamically hoist the task priority which occupies the resource. This paper analyses the task scheduling principle of μC/OS-II, and then proposes a method based on the priority inheritance and hoist, which solves the problem. It improves the task scheduling of the real-time system and strengthens its real-time performance for the high-priority task.

Key words: real-time task, priority inversion, scheduling, semaphore, priority inheritance and hoist

中图分类号: