APP下载

μC/OS-III实时内核中断管理的分析研究

2021-07-25马婧冯锋

电脑知识与技术 2021年16期

马婧 冯锋

摘要:由于实时系统内核中的一个重要指标是中断关闭总时间,因此选择实时内核操作系统五大功能中的中断管理分析研究。为解决之前所学的中断管理纯理论知识晦涩难懂的问题,通过深入分析临界段源代码的开中断、中断关闭的时间、时钟节拍以及调度器上锁,完成了μC/OS-III实时内核中断管理机制的分析研究,方便学者对中断管理机制更加轻松透彻理解。

关键词:实时内核;中断管理;μC/OS-III;临界段

中图分类号:TP316.2        文献标识码:A

文章编号:1009-3044(2021)16-0010-02

开放科学(资源服务)标识码(OSID):

Research on Interrupt Management Mechanism of    μC/OS-III Real-time Kernel

MA Jing, FENG Feng*

(School of Information Engineering, Ningxia University, Yinchuan 750021, China)

Abstract: Because one of the most important indexes in the real-time system kernel is the total time of interrupt shutdown, we choose the interrupt management analysis among the five functions of real-time kernel operating system. In order to solve the problem that the pure theoretical knowledge of interrupt management is obscure, the interrupt management mechanism of μC/OS-III real-time kernel is analyzed and researched by deeply analyzing the open interrupt, interrupt closing time, clock beat and scheduler lock of critical segment source code, which is convenient for readers to understand the interrupt management mechanism more easily and thoroughly.

Key words: Real time kernel; Interrupt management; μC/OS-III; Critical section

嵌入式實时操作系统的实时性可以很好地支持嵌入式系统的多进程,使得嵌入式应用程序的设计和开发更加容易、方便[2],并且它具有多种中断的级别,因此,它逐渐广泛地涉及和应用于各种嵌入式的领域,对于嵌入式实时操作系统的中断管理研究也因此变得更加重要。该嵌入式系统的实时性由系统的任务响应的时间和速度决定的,大部分的任务中断响应的时间由系统的中断速度决定。嵌入式实时系统中断管理技术直接影响到系统的实时响应性能。因此,有必要对系统μC/OS-III的中断响应管理进行深入的中断管理研究。学者阅读书本中关于中断管理的纯理论知识不好理解,因此通过分析源代码从根本对中断管理深入了解。

1 概述

uC/OS-III实时内核是一个完全可扩展的,可固化的和抢占式的实时任务管理内核,它可以管理的实时任务个数很多而且不受时间的限制[1]。……

登录APP查看全文