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
From the course: Introduction to FreeRTOS and Basic Task Management
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
What is a real-time operating system (RTOS)?3m 18s
-
(Locked)
Importance of RTOS in embedded systems3m 19s
-
(Locked)
The concept of a thread2m 51s
-
(Locked)
Understanding context switching in RTOS2m 24s
-
(Locked)
Introduction to ISR and busy-wait systems2m 6s
-
(Locked)
Comparing RTOS with ISR and busy-wait systems1m 22s
-
-
-
-
-
-