Real-Time Analysis of Event Response Based on RT-Thread
The event response is a crucial feature in the real-time operating system RT-Thread, used for synchronizing threads. This paper aims to analyze the real-time performance of the event response and provide practical insights for its application. To achieve this, a low-latency piling timing analysis ap...
Saved in:
Main Authors: | , , , |
---|---|
Format: | Article |
Language: | English |
Published: |
IEEE
2025-01-01
|
Series: | IEEE Access |
Subjects: | |
Online Access: | https://ieeexplore.ieee.org/document/10869446/ |
Tags: |
Add Tag
No Tags, Be the first to tag this record!
|
_version_ | 1823859614492393472 |
---|---|
author | Hui Liu Wenyin Tao Zhixin Hong Lianmin Shi |
author_facet | Hui Liu Wenyin Tao Zhixin Hong Lianmin Shi |
author_sort | Hui Liu |
collection | DOAJ |
description | The event response is a crucial feature in the real-time operating system RT-Thread, used for synchronizing threads. This paper aims to analyze the real-time performance of the event response and provide practical insights for its application. To achieve this, a low-latency piling timing analysis approach is proposed. The precise measurement of thread scheduling time is achieved by accurately recording timestamp of critical moments without external interruptions. Moreover, the theoretical time of thread scheduling under different compilation optimization levels is analyzed. And, a thread synchronization experiment based on event response is designed to measure the actual time of thread scheduling on Arm Cortex-M4 microcontroller STM32L431RCT6. The experimental results show that the low-latency piling timing analysis approach proposed in this paper has an error of about 1.5 microseconds compared to the measurement time of the logic analyzer and the theoretical analysis time. Finally, by comparing and analyzing theoretical time and actual measurement time of thread scheduling, it is evident that the compilation optimization level and PendSV exception are the key factors influencing the real-time performance of RT-Thread event response. |
format | Article |
id | doaj-art-6eef65ff45034f7abf5836611fae462a |
institution | Kabale University |
issn | 2169-3536 |
language | English |
publishDate | 2025-01-01 |
publisher | IEEE |
record_format | Article |
series | IEEE Access |
spelling | doaj-art-6eef65ff45034f7abf5836611fae462a2025-02-11T00:01:36ZengIEEEIEEE Access2169-35362025-01-0113235472355510.1109/ACCESS.2025.353766010869446Real-Time Analysis of Event Response Based on RT-ThreadHui Liu0https://orcid.org/0009-0006-8981-3965Wenyin Tao1https://orcid.org/0009-0003-5134-3839Zhixin Hong2https://orcid.org/0009-0004-7727-8294Lianmin Shi3https://orcid.org/0009-0004-5679-1259School of Intelligent Management, Suzhou Industrial Park Institute of Services Outsourcing, Suzhou, ChinaSchool of Intelligent Management, Suzhou Industrial Park Institute of Services Outsourcing, Suzhou, ChinaSuzhou Xiyu Information Technology Company Ltd., Suzhou, ChinaSuzhou Xiyu Information Technology Company Ltd., Suzhou, ChinaThe event response is a crucial feature in the real-time operating system RT-Thread, used for synchronizing threads. This paper aims to analyze the real-time performance of the event response and provide practical insights for its application. To achieve this, a low-latency piling timing analysis approach is proposed. The precise measurement of thread scheduling time is achieved by accurately recording timestamp of critical moments without external interruptions. Moreover, the theoretical time of thread scheduling under different compilation optimization levels is analyzed. And, a thread synchronization experiment based on event response is designed to measure the actual time of thread scheduling on Arm Cortex-M4 microcontroller STM32L431RCT6. The experimental results show that the low-latency piling timing analysis approach proposed in this paper has an error of about 1.5 microseconds compared to the measurement time of the logic analyzer and the theoretical analysis time. Finally, by comparing and analyzing theoretical time and actual measurement time of thread scheduling, it is evident that the compilation optimization level and PendSV exception are the key factors influencing the real-time performance of RT-Thread event response.https://ieeexplore.ieee.org/document/10869446/RT-threadevent responsepiling timing analysiscompilation optimization levelPendSV |
spellingShingle | Hui Liu Wenyin Tao Zhixin Hong Lianmin Shi Real-Time Analysis of Event Response Based on RT-Thread IEEE Access RT-thread event response piling timing analysis compilation optimization level PendSV |
title | Real-Time Analysis of Event Response Based on RT-Thread |
title_full | Real-Time Analysis of Event Response Based on RT-Thread |
title_fullStr | Real-Time Analysis of Event Response Based on RT-Thread |
title_full_unstemmed | Real-Time Analysis of Event Response Based on RT-Thread |
title_short | Real-Time Analysis of Event Response Based on RT-Thread |
title_sort | real time analysis of event response based on rt thread |
topic | RT-thread event response piling timing analysis compilation optimization level PendSV |
url | https://ieeexplore.ieee.org/document/10869446/ |
work_keys_str_mv | AT huiliu realtimeanalysisofeventresponsebasedonrtthread AT wenyintao realtimeanalysisofeventresponsebasedonrtthread AT zhixinhong realtimeanalysisofeventresponsebasedonrtthread AT lianminshi realtimeanalysisofeventresponsebasedonrtthread |