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

计算机工程

• 体系结构与软件技术 • 上一篇    下一篇

基于μC/OS-Ⅲ的实时内核中断管理机制

袁志祥,甘正良   

  1. (安徽工业大学计算机科学与技术学院,安徽 马鞍山 243032)
  • 收稿日期:2014-09-01 出版日期:2015-11-15 发布日期:2015-11-13
  • 作者简介:袁志祥(1973-),男,副教授,主研方向:Petri网理论,嵌入式系统;甘正良,硕士研究生。
  • 基金资助:
    国家“十二五”科技支撑计划基金资助项目(2012BAK30B04-02)。

Real-time Kernel Interrupt Management Mechanism Based on μC/OS-Ⅲ

YUAN Zhixiang,GAN Zhengliang   

  1. (School of Computer Science and Technology,Anhui University of Technology,Maanshan 243032,China)
  • Received:2014-09-01 Online:2015-11-15 Published:2015-11-13

摘要: 在嵌入式实时内核中,低优先级中断对紧急任务的截止期干扰较大。针对该问题,提出一种改进的μC/OS-Ⅲ实时内核中断管理机制。利用共用优先级空间的方式实现中断和任务优先级统一分配。根据当前任务在执行过程中发生中断的紧急程度为中断分配相应的优 先级,如果中断比任务重要,则其优先级高于当前任务,反之则低于当前任务。优先级低于当前任务的中断以任务方式处理,高于的则通过中断服务程序处理。理论推导和实验结果表明,改进后的中断管理机制可以缩短当前执行任务的响应时间,保证紧急任务的可调度性和可 预测性。

关键词: 嵌入式实时内核, 低优先级中断, 共用优先级空间, 中断服务程序, 可调度性, 可预测性

Abstract: Aiming at the problem that the low-priority interrupts have bad disturbance on high-priority tasks deadline in embedded real-time kernel,an improved interrupt management mechanism for μC/OS-Ⅲ is proposed.Priority assignment is based on the importance of interrupts which occurs during execution of the tasks.If interrupt is more important,its priority is higher than tasks priority,otherwise its priority is lower than task priority.Interrupt Service Routine(ISR) deals with the high-priority interrupts and interrupt service task deals with the low-priority interrupts.The result of the experiment and analysis of theory show that the improved interrupt management mechanism can reduce the response time of task and ensure the schedulability and predictability of the task.

Key words: embedded real-time kernel, low-priority interrupt, common priority space, Interrupt Service Routine(ISR), schedulability, predictability

中图分类号: