From the course: IoT Foundations: Operating Systems Fundamentals
Unlock this course with a free trial
Join today to access over 25,300 courses taught by industry experts.
Interrupts
From the course: IoT Foundations: Operating Systems Fundamentals
Interrupts
- [Narrator] To manage data from different peripheral devices, we need the mechanism that alerts us when data is ready for processing. For example, when the wireless network interface on an IOT device receives messages, our program must read and handle them promptly to ensure timely processing. Interrupts provide this mechanism in operating system, allowing hardware devices to signal the processor when they require immediate attention, Typically due to available data or a service request. And interrupt is a hardware signal that pauses the CPU to respond through and interrupt service routine, or ISR. An ISR is implemented as a function that can interrupt the execution of regular tasks to handle real-time events. While an ISR is not a regular task, it can be thought of as a special kind of task that operates under different constraints and priorities. ISRs often need to share data with regular tasks, but they typically use a separate set of API functions to do so, particularly in RTOS<…
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.