Review of Azure RTOS ThreadX Real-Time Operating System on STM32 platforms

Authors

DOI:

https://doi.org/10.4108/eetsmre.11710

Keywords:

Real-time operating systems, Azure RTOS ThreadX, STM32 microcontrollers, deterministic scheduling, inter-thread communication, thread synchronization, memory management, ARM Cortex-M

Abstract

Real-time operating systems (RTOS) play a critical role in modern embedded systems by providing deterministic execution, predictable timing behavior, and efficient use of limited hardware resources. These properties are especially important in industrial automation, energy control, and safety-oriented applications, where reliable timing behavior is required. This article focuses on Azure RTOS ThreadX, a lightweight RTOS, and examines its core real-time mechanisms, including scheduling, inter-thread communication and synchronization, and memory management. Particular attention is given to the integration of ThreadX with STM32 microcontrollers based on ARM Cortex-M architectures, which are widely adopted in industrial and energy-related embedded platforms. Therefore, a structured literature survey is conducted using peer-reviewed publications, official technical documentation, and industrial reports to analyze and compare ThreadX with other embedded RTOS solutions. The analysis indicates that, on typical STM32 platforms using ARM Cortex-M cores, ThreadX achieves context-switch latencies in the low microsecond range while maintaining a small kernel footprint suitable for resource-constrained devices. These characteristics enable reliable and predictable operation in industrial and safety-critical embedded systems, while also highlighting challenges related to scalability, mixed-criticality workloads, and energy-aware scheduling that motivate future research.

Downloads

Download data is not yet available.

References

[1] Y. H. Hee, M. K. Ishak, M. S. M. Asaari, and M. T. A. Seman, “Embedded operating system and industrial applications: a review,” Bull. Electr. Eng. Inform., vol. 10, no. 3, pp. 1687–1700, Jun. 2021, doi: 10.11591/eei.v10i3.2526.

[2] I. Ungurean, “Timing Comparison of the Real-Time Operating Systems for Small Microcontrollers,” Symmetry, vol. 12, no. 4, p. 592, Apr. 2020, doi: 10.3390/sym12040592.

[3] Y. Mazzi, A. Gaga, and F. Errahimi, “Benchmarking and Comparison of Two Open-source RTOSs for Embedded Systems Based on ARM Cortex-M4 MCU,” Indian J. Sci. Technol., vol. 14, no. 16, pp. 1261–1273, Apr. 2021, doi: 10.17485/IJST/v14i16.387.

[4] P. Hambarde, R. Varma, and S. Jha, “The Survey of Real Time Operating System: RTOS,” Jan. 2014, pp. 34–39. doi: 10.1109/ICESC.2014.15.

[5] A. F. H. Dhrubo and M. A. Qayum, “STM32-Based IoT Framework for Real-Time Environmental Monitoring and Wireless Node Synchronization,” Oct. 20, 2025, arXiv: arXiv:2506.17295. doi: 10.48550/arXiv.2506.17295.

[6] Y. Zhang and J. Li, “Design of Real-Time Embedded System Based on STM32 and Free RTOS with Optimization of Advanced Task Scheduling Algorithm,” 2025 3rd Cogn. Models Artif. Intell. Conf. AICCONF, pp. 1–5, Jun. 2025, doi: 10.1109/AICCONF64766.2025.11063903.

[7] S. Baskiyar and N. Meghanathan, “A Survey of Contemporary Real-time Operating Systems,” Inform. Slov., 2005, Accessed: Jan. 21, 2026. [Online]. Available: https://www.semanticscholar.org/paper/A-Survey-of-Contemporary-Real-time-Operating-Baskiyar-Meghanathan/8269eb644fa8519e64f6bc0c1fb1711513571a55

[8] R. A. Walker and S. Chaudhuri, “Introduction to the scheduling problem,” IEEE Des. Test Comput., vol. 12, no. 2, pp. 60–69, 1995, doi: 10.1109/54.386007.

[9] M. Borges, S. Paiva, A. Santos, B. Gaspar, and J. Cabral, “Azure RTOS ThreadX Design for Low-End NB-IoT Device,” 2020 2nd Int. Conf. Soc. Autom. SA, pp. 1–8, May 2021, doi: 10.1109/SA51175.2021.9507191.

[10] R. Raymundo Belleza and E. de Freitas Pignaton, “Performance study of real-time operating systems for internet of things devices,” IET Softw., vol. 12, no. 3, pp. 176–182, 2018, doi: 10.1049/iet-sen.2017.0048.

[11] X. Shao et al., “The Cost of Performance: Breaking ThreadX with Kernel Object Masquerading Attacks,” Apr. 28, 2025, arXiv: arXiv:2504.19486. doi: 10.48550/arXiv.2504.19486.

[12] Onell Allan Chakawuya, Forhad Monjur Hasan, and Mostafa Mohammad Razaul, “Real-time Operating Systems (RTOS) For Edge AI,” Jul. 2025, doi: 10.5281/ZENODO.16729307.

[13] N. He and H.-W. Huang, “Using Open-source Eclipse ThreadX in a Real-time Embedded Systems Lab,” in Proceedings of the Workshop on Computer Architecture Education, in WCAE ’25. New York, NY, USA: Association for Computing Machinery, Oct. 2025, pp. 1–8. doi: 10.1145/3743646.3750015.

[14] C. Ngolah, Y. Wang, and X. Tan, “The real-time task scheduling algorithm of RTOS+,” Can. J. Electr. Comput. Eng., vol. 29, pp. 236–242, Oct. 2004, doi: 10.1109/CJECE.2004.1426051.

[15] W. Cedeño and P. A. Laplante, “An Overview of Real-Time Operating Systems,” SLAS Technol., vol. 12, no. 1, pp. 40–45, Feb. 2007, doi: 10.1016/j.jala.2006.10.016.

[16] S. Kim, “Assigning Priorities for Fixed Priority Preemption Threshold Scheduling,” ScientificWorldJournal, vol. 2015, p. 837472, 2015, doi: 10.1155/2015/837472.

[17] C.-S. Chen and C.-C. Tseng, “Integrated support to improve inter-thread communication and synchronization in a multithreaded processor,” in Proceedings of 1994 International Conference on Parallel and Distributed Systems, Dec. 1994, pp. 481–486. doi: 10.1109/ICPADS.1994.590359.

[18] D. Voitsechov, O. Port, and Y. Etsion, “Inter-Thread Communication in Multithreaded, Reconfigurable Coarse-Grain Arrays,” in 2018 51st Annual IEEE/ACM International Symposium on Microarchitecture (MICRO), Oct. 2018, pp. 42–54. doi: 10.1109/MICRO.2018.00013.

[19] A. P. Nyrkov, K. A. Ianiushkin, A. A. Nyrkov, Y. N. Romanova, and V. D. Gaskarov, “Dynamic Shared Memory Pool Management Method in Soft Real-Time Systems,” in 2020 IEEE Conference of Russian Young Researchers in Electrical and Electronic Engineering (EIConRus), Jan. 2020, pp. 438–440. doi: 10.1109/EIConRus49466.2020.9039354.

[20] “Chapter 8: Memory Management: Byte Pools and Block Pools | GlobalSpec.” Accessed: Jan. 22, 2026. [Online]. Available: https://www.globalspec.com/reference/25415/203279/chapter-8-memory-management-byte-pools-and-block-pools?utm_source=chatgpt.com

[21] B. Pitre and M. Margala, “A Novel Approach to Managing System-on-Chip Sub-Blocks Using a 16-Bit Real-Time Operating System,” Electronics, vol. 13, no. 10, May 2024, doi: 10.3390/electronics13101978.

[22] P. R. Wilson, M. S. Johnstone, M. Neely, and D. Boles, “Dynamic storage allocation: A survey and critical review,” in Memory Management, vol. 986, H. G. Baler, Ed., in Lecture Notes in Computer Science, vol. 986. , Berlin, Heidelberg: Springer Berlin Heidelberg, 1995, pp. 1–116. doi: 10.1007/3-540-60368-9_19.

[23] I. Puaut, “Real-time performance of dynamic memory allocation algorithms,” in Proceedings 14th Euromicro Conference on Real-Time Systems. Euromicro RTS 2002, Jun. 2002, pp. 41–49. doi: 10.1109/EMRTS.2002.1019184.

[24] M. Hughes, Y. Zhou, and D. Morgan, Integrated Memory Control and Thread Scheduling for Real-Time Voice Interaction Systems. 2025. doi: 10.21203/rs.3.rs-7863332/v1.

[25] “Introduction to Azure RTOS® with STM32 - stm32mcu.” Accessed: Jan. 22, 2026. [Online]. Available: https://wiki.st.com/stm32mcu/wiki/Introduction_to_Azure_RTOS_with_STM32?utm_source=chatgpt.com

[26] Y. Zhang and J. Li, “Design of Real-Time Embedded System Based on STM32 and Free RTOS with Optimization of Advanced Task Scheduling Algorithm,” in 2025 3rd Cognitive Models and Artificial Intelligence Conference (AICCONF), Jun. 2025, pp. 1–5. doi: 10.1109/AICCONF64766.2025.11063903.

[27] “Zephyr RTOS vs FreeRTOS: A Comprehensive Comparison for IoT and Embedded Systems,” Ezurio. Accessed: Jan. 21, 2026. [Online]. Available: https://www.ezurio.com/resources/blog/zephyr-rtos-vs-freertos-a-comprehensive-comparison-for-iot-and-embedded-systems

[28] “Measuring Real-Time Operating System Performance – Part II: Comparing FreeRTOS vs. Zephyr,” UL Solutions. Accessed: Jan. 23, 2026. [Online]. Available: https://www.ul.com/sis/blog/measuring-real-time-operating-system-performance-part-ii-comparing-freertos-vs-zephyr

[29] I. L. Orășan, C. Seiculescu, and C. D. Căleanu, “A Brief Review of Deep Neural Network Implementations for ARM Cortex-M Processor,” Electronics, vol. 11, no. 16, Aug. 2022, doi: 10.3390/electronics11162545.

[30] J. Regehr, “Scheduling tasks with mixed preemption relations for robustness to timing faults,” in 23rd IEEE Real-Time Systems Symposium, 2002. RTSS 2002., Dec. 2002, pp. 315–326. doi: 10.1109/REAL.2002.1181585.

[31] L. Sha, R. Rajkumar, and J. P. Lehoczky, “Priority inheritance protocols: an approach to real-time synchronization,” IEEE Trans. Comput., vol. 39, no. 9, pp. 1175–1185, Sep. 1990, doi: 10.1109/12.57058.

Downloads

Published

05-05-2026

How to Cite

1.
Truong PH, Ngo HQT, Tran VDT. Review of Azure RTOS ThreadX Real-Time Operating System on STM32 platforms. EAI Endorsed Sust Man Ren Energy [Internet]. 2026 May 5 [cited 2026 May 5];3(1). Available from: https://publications.eai.eu/index.php/sumare/article/view/11710