What will processor do when it gets the inturrupt?
Answers
It depends on the processor. At the very basic the interrupt handling system is composed of the hardware and software components. The hardware part is often a register containing an address to the table that provides addresses of code blocks used for handling interrupts. This table, often called an interrupt descriptor table, is the software part and it serves as a layer of indirection. The interrupt descriptor that provides a pointer to the handler is selected from the table based on the interrupt number. It works roughly the same on the conceptual level for both hardware and software issued interrupts (the internals and the mechanisms involved are different but the processor abstracts that away). Once the execution gets transferred to the interrupt handler it is up to the author of the code to decide what to do. The processor’s role is done.