Journal of Jilin University (Information Science Edition) ›› 2024, Vol. 42 ›› Issue (4): 717-725.

Previous Articles     Next Articles

Analysis of Event Response Mechanism of Real-Time Operating System

LIU Changyong1a,1b,2 , WANG Yihuai2   

  1. 1a. Department of Mathematics and Computer Science; 1b. Fujian Key Laboratory of Big Data Application and Intellectualization for Tea Industry, Wuyi University, Wuyishan 354300, China|2. School of Computer Science and Technology, Soochow University, Suzhou 215006, China
  • Received:2023-07-13 Online:2024-07-22 Published:2024-07-22

Abstract:

In order to clearly understand the working principle and mechanism of events, to analyze the role, response principle, and response process of events in real-time operating systems, based on the KL36 microcontroller, a PC-like printf output method is adopted to analyze the event response mechanism of mbedOS from the aspects of scheduling process timing, response time performance, etc. The experimental results show that the printf function can intuitively output information such as thread address, queue address, queue content, thread in and out queue status, and event bits during the event response process. This provides convenience for readers to understand the event response principle and process of mbedOS from the bottom layer, and also provides a method reference for analyzing the context structure of other synchronization and communication methods of mbedOS.

Key words:  real time operating system, event response mechanism, printf output, mbedOS real-time operating system, KL36 chip

CLC Number: 

  • TP316. 2