Types of Interrupt
There are two important Types of Interrupt. In this article we will discuss the two most important Types of Interrupt.
1. Hardware Interrupt
2. Software Interrupt

1. Hardware Interrupt
Hardware interrupt is caused by some hardware device such as a request to start an I/O, a hardware failure or something similar. It were introduced as a way to avoid wasting the processor ‘s valuable time in pooling loops and waiting for external events. It means that time store in pooling loops and waste the valuable time of the CPU. There are two types of hardware interrupt as given below.
i) Maskable Interrupt (MI)
ii) Non-Maskable Interrupt (NMI)
Example
When an I\O operation is completed such as reading some data into the computer from a tape drive.
- An interrupt is generated by a mouse when a button is clicked.
- An interrupt is generated by a network card when data is received.
- An interrupt is also generated by a disk drive when a read or write operation is completed.
i) Maskable Interrupt (MI)
Maskable interrupt is lower priority then non-maskable interrupt. It is used for interface with peripheral devices. It may be vectored and non-vectored. Maskable interrupt (MI) can be a masked. It means that processor can be pending.
Example: RST 7.5 and INTR are examples of maskable interrupt.
ii) Non-Maskable Interrupt (NMI)
It is higher priority then non-maskable interrupt. It is used for interface emergency purpose such as smoke detector. In, non-maskable interrupt all are vectored. Therefore, maskable interrupt (MI) can not be a masked. It means that processor can not be pending.
Example: RST 1 and Trap are examples of non-maskable interrupt.
2. Software Interrupt
Software interrupt is a special call instruction. It behave can interrupt like as interrupt rather than subroutine calls. In easy words we can say that in viewing it can be a subroutine but behave according to the interrupt because they are quay immediate attention for the CPU. Software interrupt mostly used by the programmers to initiate an interrupt procedure at any desire points of the program. It is used when the programmers urgent need of attention of the CPU. There are two types of software interrupt as given below.
i) Exception Interrupt
ii) Normal Interrupt
Example: Supervisor Call Instruction (SVC). It means that SVC is an instruction that it switch the CPU from user mode to supervisor mode.
i) Exception Interrupt
Exception interrupt are unplanned that occur during the exception of the program.
Example: The divisible by zero is an example of exception interrupt.
ii) Normal Interrupt
Normal interrupt are caused by the software instructions and are made intentionally.
Example: When we press a key on the keyboard, it sends an interrupt signals to the CPU.