From the course: IoT Foundations: Operating Systems Fundamentals

Unlock the full course today

Join today to access over 23,200 courses taught by industry experts.

Interrupts

Interrupts

- [Instructor] We have seen the options on how devices are connected physically. Let's look at how an OS deals with input and output devices. Based on the OS' architecture, it can provide a programming interface in the hardware code of the kernel to operate a device using the device drivers. An OS also needs to have a mechanism to handle the real-time events in the form of interrupts. These events for example include the data reception events from the network reading the sensor data and reading the buffer from the serial communication port of digital sensors. When that event happens, the devices can generate interrupts to be taken care by the interrupt service routines in the software. The way OS handles the interrupts is providing some mechanisms to handle the interrupt service routines. An ISR can be considered as a special task and it usually needs to share data with regular tasks, but they may use a different set of API functions to do that. Let's take a look at ISR further. An…

Contents