Explain the Classes of interrupt Explain the Classes of inte
Solution
Classes Of Interrupts:
An interrupt is a signal to the processor emitted by hardware or software indicating an event that needs immediate attention.
There are two types of interrupts: hardware interrupts and software interrupts.
Classification of Interrupts According to Periodicity of Occurrence:
Classification of Interrupts According to the Temporal Relationship with System Clock:
Interrupt Handling:
We know that instruction cycle consists of fetch, decode, execute and read/write functions. After every instruction cycle the processor will check for interrupts to be processed if there is no interrupt is present in the system it will go for the next instruction cycle which is given by the instruction register.
If there is an interrupt present then it will trigger the interrupt handler, the handler will stop the present instruction which is processing and save its configuration in a register and load the program counter of the interrupt from a location which is given by the interrupt vector table. After processing the interrupt by the processor interrupt handler will load the instruction and its configuration from the saved register, process will start its processing where it’s left. This saving the old instruction processing configuration and loading the new interrupt configuration is also called as context switching.
The interrupt handler is also called as Interrupt service routine (ISR). There are different types of interrupt handler which will handle different interrupts. For example for the clock in a system will have its interrupt handler, keyboard it will have its interrupt handler for every device it will have its interrupt handler.
The main features of the ISR are
Type of Interrupt Handlers:
