From the course: Introduction to FreeRTOS and Basic Task Management

Unlock this course with a free trial

Join today to access over 25,600 courses taught by industry experts.

Comparing RTOS with ISR and busy-wait systems

Comparing RTOS with ISR and busy-wait systems

- [Instructor] Now, let's look at how an RTOS can handle this system more effectively. An RTOS allows us to run multiple threats concurrently, each handling different tasks independently. In the case of our autonomous vehicle, we could have separate threats handling data from the LiDAR, the radar, and camera sensors all at the same time without interfering with each other. Each thread can run its sequence of instructions independently, meaning the CPU can switch between tasks based on priority. The RTOS manages these tasks using efficient scheduling algorithms, ensuring that high priority tasks such as taking actions like braking the vehicle to avoid an obstacle are handled immediately. Now, here are the key takeaways from these lessons. One, busy-wait systems are simple but inefficient. They introduce significant latency and are almost never used in complex systems. Two, ISRs are more efficient compared to busy-wait systems, but can lead to interrupt conflict in complex systems. And…

Contents