Prerequisite – Interrupts in 8085 microprocessor
1. Hardware Interrupt :
Hardware Interrupt is caused by some hardware device such as request to start an I/O, a hardware failure or something similar. Hardware interrupts were introduced as a way to avoid wasting the processor’s valuable time in polling loops, waiting for external events.
For example, when an I/O operation is completed such as reading some data into the computer from a tape drive.
2. Software Interrupt :
Software Interrupt is invoked by the use of INT instruction. This event immediately stops execution of the program and passes execution over to the INT handler. The INT handler is usually a part of the operating system and determines the action to be taken. It occurs when an application program terminates or requests certain services from the operating system.
For example, output to the screen, execute file etc.
Difference between Hardware Interrupt and Software Interrupt :
| SR.NO. | Hardware Interrupt | Software Interrupt |
|---|---|---|
| 1 | Hardware interrupt is an interrupt generated from an external device or hardware. | Software interrupt is the interrupt that is generated by any internal system of the computer. |
| 2 | It do not increment the program counter. | It increment the program counter. |
| 3 | Hardware interrupt can be invoked with some external device such as request to start an I/O or occurrence of a hardware failure. | Software interrupt can be invoked with the help of INT instruction. |
| 4 | It has lowest priority than software interrupts | It has highest priority among all interrupts. |
| 5 | Hardware interrupt is triggered by external hardware and is considered one of the ways to communicate with the outside peripherals, hardware. | Software interrupt is triggered by software and considered one of the ways to communicate with kernel or to trigger system calls, especially during error or exception handling. |
| 6 | It is an asynchronous event. | It is synchronous event. |
| 7 | Hardware interrupts can be classified into two types they are: 1. Maskable Interrupt. 2. Non Maskable Interrupt. | Software interrupts can be classified into two types they are: 1. Normal Interrupts. 2. Exception |
| 8 | Keystroke depressions and mouse movements are examples of hardware interrupt. | All system calls are examples of software interrupts |
Attention reader! Don’t stop learning now. Get hold of all the important CS Theory concepts for SDE interviews with the CS Theory Course at a student-friendly price and become industry ready.
Recommended Posts:
- Hardware Protection and Type of Hardware Protection
- Difference between Interrupt and Polling
- Difference between Maskable and Non Maskable Interrupt
- Difference between Programmed and Interrupt Initiated I/O
- Difference between Interrupt and Exception
- User View Vs Hardware View Vs System View of Operating System
- Transforming of I/O Requests to Hardware Operations
- I/O Interface (Interrupt and DMA Mode)
- Purpose of an Interrupt in Computer Organization
- Difference between System Software and Application Software
- Difference between Application Software and Operating System
- Difference between Stop and Wait, GoBackN and Selective Repeat
- Difference between Stop and Wait protocol and Sliding Window protocol
- Difference between User Level thread and Kernel Level thread
- Difference between Priority Inversion and Priority Inheritance
- Difference between SMTP and POP3
- Difference between Adaptive and Non-Adaptive Routing algorithms
- Difference between Characteristics of Combinational and Sequential circuits
- Difference between Unicast, Broadcast and Multicast in Computer Network
- Difference between 32-bit and 64-bit operating systems
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.

