
- Operating System Tutorial
- OS - Home
- OS - Overview
- OS - Components
- OS - Types
- OS - Services
- OS - Properties
- OS - Processes
- OS - Process Scheduling
- OS - Scheduling algorithms
- OS - Multi-threading
- OS - Memory Management
- OS - Virtual Memory
- OS - I/O Hardware
- OS - I/O Software
- OS - File System
- OS - Security
- OS - Linux
- OS - Exams Questions with Answers
- OS - Exams Questions with Answers
- Operating System Useful Resources
- OS - Quick Guide
- OS - Useful Resources
- OS - Discussion
What are interrupts and how interrupt handling is done in modern operating systems?
Interrupts are generally called signals which are generated by the software or hardware when a particular event or process requires immediate attention. So, the signal informs the processor about a high priority and urgent information demand causing an interruption in the current working process.
Thus, whenever an interruption occurs the processor finishes the current instruction execution and starts the execution of the interrupt known as interrupt handling. Moreover, for every interrupt handling to occur there is an Interrupt service routine (ISR) or interrupt handler.
Interrupt handling in modern operating systems
In several operating systems such as Linux. mac or windows Interrupt handling is divided into two parts −
First-level interrupt handlers (FLIH), also known as hard interrupt handlers or fast interrupt handlers.
Second-level interrupt handlers (SLIH), also known as slow interrupt handlers or soft interrupt handlers.
The uses and properties of FLIH and SLIH are given below −
FLIH
These include platform specific interrupt handling.
It causes jitter in the execution of the process.
It also masks interrupts.
FLIH is known as the upper half in Linux.
SLIH
It completes long interrupt processing tasks similar to the process or event.
Have a dedicated thread for every single handler.
It has a long-lived execution time
SLIH is known as the Lower half or bottom half in Linux.
The interrupt handling mechanism of an operating system accepts a number which is an address and then selects what specific action to be taken which is already mentioned in the interrupt service routine. In most architecture, the address is stored in a table known as a vector table.
Now let us see the interrupt handling by OS scheme in pictorial representation.
- Related Articles
- What is an interrupt and how does the processor handle normal and multiple interrupts?
- What is the difference between context switching and interrupt handling?
- What is microKernel in Operating Systems?
- What are the advantages and disadvantages of operating systems?
- What are the features of Operating Systems?
- What is process creation in Operating Systems?
- What are the user and system goals of Operating Systems?
- What are the different types of Operating Systems?
- What are the roles of embedded operating systems?
- What is the importance of operating systems?
- What are the different types of Mobile Operating Systems?
- How does the hardware support interrupt handling in the processor?
- What are the characteristics of batch, embedded, real time and mainframe operating systems?
- Operating System Error handling
- Open Source Operating Systems
