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.
- Hardware Protection and Type of Hardware Protection
- Difference between Hardware and Software
- Difference between Hardware Description Language and Software Language
- Difference between Computer Hardware Engineer and Computer Software Engineer
- Difference between Hardware and Firmware
- 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 Packaged Software and Custom Software
- Is There Any Difference Between Software Developer And Software Engineer?
- Difference between Generic Software Development and Custom Software Development
- Difference between Free Software and Open Source Software
- Difference between Software Inspection and Software Testing
- Difference between Open source Software and Commercial Software
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. 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.