优化的μC/OS-III实时内核中断管理机制  被引量:1

Optimizing the Real-Time Kernel Interrupt Management Mechanism ofμC/OS-III

在线阅读下载全文

作  者:冯冲 吴尧辉[1,2] 吴昊珍 FENG Chong;WU Yaohui;WU Haozhen(School of Electrical Engineering and Automation,Henan Polytechnic University,Jiaozuo 454000,China;XJ Electric Co., Ltd.,Intelligent Power Supply System for Underground Coal Mine,Henan Polytechnic University,Jiaozuo 454000,China;Zhengzhou Technology and Business University,Zhengzhou 451400,China)

机构地区:[1]河南理工大学电气工程与自动化学院,河南焦作454150 [2]河南理工大学许继电气股份有限公司煤矿井下智能供电系统实验室,河南焦作454150 [3]郑州工商学院,河南郑州451400

出  处:《电子科技》2021年第9期7-11,23,共6页Electronic Science and Technology

基  金:国家自然科学基金(61340015);教育部协同育人实践条件建设项目(201702064052);河南省教育厅自然科学研究计划(2010A470003);教育部协同育人创新创业联合基金(201802060039)。

摘  要:针对μC/OS-III实时操作系统中,低优先级中断任务对紧急任务截止期干扰较大的问题,文中提出了一种优化的μC/OS-III中断管理机制。利用完全基于μC/OS-III优先级剥夺原则,对中断任务和普通任务的优先级进行统一分配。根据中断的紧急程度为中断任务分配合适的优先级,对比中断任务与当前执行任务的优先级高低来选择不同的处理方式,若中断任务的优先级低于当前执行任务则以任务方式处理,反之则以中断服务程序处理。理论分析和μC/Probe软件检测及实验表明,优化后的μC/OS-III实时内核中断管理机制可以缩短紧急任务的截止期,系统能够可靠稳定地运行,具有较高的实时性。In theμC/OS-III real-time operating system,low priority interrupt task has greater interference with the deadline of urgent tasks.In view of this problem,an optimized interrupt management mechanism ofμC/OS-III is proposed.Using the principle of priority deprivation based onμC/OS-III,the priority of interrupt task and common task is assigned uniformly.According to the urgency of the interrupt,the interrupt task is assigned an appropriate priority,and different processing methods are selected by comparing the priority of the interrupt task and the current executing task.If the priority of the interrupt task is lower than the currently executing task,it will be processed in task mode,otherwise it will be processed in the interrupt service routine.Theoretical analysis andμC/Probe software testing and experiments show that the optimizedμC/OS-III real-time kernel interrupt management mechanism can shorten the deadline of emergency tasks,and the system can run reliably and stably with high real-time performance.

关 键 词:μC/OS-III实时操作系统 中断管理机制 低优先级中断 紧急任务 截止期 统一分配 μC/Probe 实时性 

分 类 号:TP311[自动化与计算机技术—计算机软件与理论] TN99[自动化与计算机技术—计算机科学与技术]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象