Reader small image

You're reading from  Hands-on ESP32 with Arduino IDE

Product typeBook
Published inJan 2024
PublisherPackt
ISBN-139781837638031
Edition1st Edition
Right arrow
Author (1)
Asim Zulfiqar
Asim Zulfiqar
author image
Asim Zulfiqar

Asim Zulfiqar is a blogger and tech content creator who has been writing tutorials on embedded systems and IoT on his blog and YouTube channel, High Voltages. Currently, he is working as a scientific programmer for IoT research projects. He completed his bachelor's degree in electronic engineering at Sir Syed University of Engineering and Technology, Pakistan. After that, he completed his Erasmus Mundus joint master's degree program in Photonics Integrated Circuits, Sensors, and Networks at Scuola Superiore Sant'Anna (Italy), Aston University (U.K), and Osaka University (Japan).
Read more about Asim Zulfiqar

Right arrow

Understanding RTOS use cases and features

An RTOS is specialized software that manages tasks with precise timing requirements, ensuring timely execution in embedded systems and applications. It is designed for applications where a predictable response time is critical, such as in robotics and industrial control systems (ICS).

To understand an RTOS, we will take an example of the approach that we have taken in this book of the “super loop architecture,” in which the main program consists of a continuous loop (a “super loop” or loop() function) that executes sequentially. This loop repeatedly performs tasks, checks conditions, and responds to events, as can be seen in Figure 9.1:

Figure 9.1 – Super loop architecture

Figure 9.1 – Super loop architecture

In contrast, an RTOS allows for the concurrent execution of multiple tasks. In the case of a multi-core processor, true multitasking is achievable, as can be seen in Figure 9.2, while on a single-core processor...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Hands-on ESP32 with Arduino IDE
Published in: Jan 2024Publisher: PacktISBN-13: 9781837638031

Author (1)

author image
Asim Zulfiqar

Asim Zulfiqar is a blogger and tech content creator who has been writing tutorials on embedded systems and IoT on his blog and YouTube channel, High Voltages. Currently, he is working as a scientific programmer for IoT research projects. He completed his bachelor's degree in electronic engineering at Sir Syed University of Engineering and Technology, Pakistan. After that, he completed his Erasmus Mundus joint master's degree program in Photonics Integrated Circuits, Sensors, and Networks at Scuola Superiore Sant'Anna (Italy), Aston University (U.K), and Osaka University (Japan).
Read more about Asim Zulfiqar