Define interrupt handler.
Define interrupt handler.
Interrupt:
It refers to the transfer of CPU from a running program to another program as a request of a request after the execution of the service program the CPU return back to the original program. The interrupt can also be defined as breaking the sequence of execution of the running process after the execution of interrupt. The CPU must return at the same point in the original program where interrupt has occurred.
There are three types of interrupt:
External interrupt: If the interrupt arises from the outside environment of the computer system then it is called an external interrupt. It requires interaction with the user. The external interrupt generally comes from peripheral devices, power supply, and any other.
Internal interrupt: If the interrupt arises from the internal environment of the computer system then it is called an internal interrupt. It generally comes due to hardware problems. For example, divide by zero error.
Software interrupt: if the normal sequence of operation can not be continued due to software problems then it is considered as a software interrupt. For example, a virus.
Step by step
Solved in 2 steps with 1 images