It is the events that makes the processor stop executing its program to perform some requested activity. There are two types of interrupts they are:
1. Hardware interrupt:
Interrupts generated by hardware devices such as keyboard, mouse, printer or chips on the system board is called hardware interrupt. Some examples of hardware interrupt are video card wants memory access, USB scanner has data, mouse moves, key pressed on keyboard, etc.
2. Software interrupt: Interrupts signals generated or caused by the programs or software are called software interrupts. Some examples: interrupt generated by the ROM BIOS during the start up for the computer, virus threat notification by the antivirus software, etc.