东北大学学报(自然科学版) ›› 2011, Vol. 32 ›› Issue (5): 650-653+666.DOI: -

• 论著 • 上一篇    下一篇

RM算法中减少抢占开销的任务微调算法

赵海;宁宣杰;赵震宇;石晨;   

  1. 东北大学信息科学与工程学院;沈阳军区空军指挥自动化工作站;沈阳市信息发布中心;
  • 收稿日期:2013-06-19 修回日期:2013-06-19 发布日期:2013-04-04
  • 通讯作者: -
  • 作者简介:-
  • 基金资助:
    国家科技型中小企业技术创新基金资助项目(01C26212110802)

A task fine-tuning algorithm to reduce preemption overhead of RM algorithm

Zhao, Hai (1); Ning, Xuan-Jie (1); Zhao, Zhen-Yu (2); Shi, Chen (3)   

  1. (1) School of Information Science and Engineering, Northeastern University, Shenyang 110819, China; (2) Automated Workstation of Air Force of Shenyang Military Region, Shenyang 110015, China; (3) Shenyang Information Release Center, Shenyang 110044, China
  • Received:2013-06-19 Revised:2013-06-19 Published:2013-04-04
  • Contact: Zhao, Z.-Y.
  • About author:-
  • Supported by:
    -

摘要: 在基于嵌入式实时操作系统的实时应用中,由于任务抢占导致的切换开销对于整个系统是不可忽略的.提出了一种减少抢占发生的RM任务微调算法,通过对固定优先级调度抢占行为可推迟时间的量化分析,推导出受低优先级任务阻塞而造成的受阻任务集,以及在任意抢占时刻,推迟高优先级实时任务执行避免抢占发生的判定条件.仿真实验表明该算法在保证可调度任务集中所有任务满足时限约束的前提下,延迟高优先级任务的执行,减少抢占发生次数,通过减少抢占开销提高RM算法在实际应用中的可调度利用率.

关键词: 嵌入式实时操作系统, 实时调度, RM算法, 有效时限, 抢占开销

Abstract: In embedded real-time applications based on embedded real-time operating systems, the task context switch overhead incurred by preemptions cannot be ignored compared with the overall system. To solve the problem, a preemption reduction algorithm is presented to reduce the occurrence of preemption. While quantitatively analyzing suspension time of fixed priority scheduling preemption actions, the blocked task set obstructed by low priority tasks and the determinant condition was deduced to avoid preemption in the arbitrary preemption moment by postponing high-priority tasks in hard real-time systems. Simulation results showed that the optimization strategy presented effectively reduced the number of task preemptions and the preemption overhead, while ensuring task scheduling. The algorithm postpones the running of high-priority tasks to avoid occurrence of unnecessary preemptions and guarantees that each task in the schedulable task set meets its deadline. Thus, the algorithm improves practical schedulable utilization of the RM algorithm by reducing preemption overhead in practical applications.

中图分类号: