23. How does a maskable interrupt differ from a non-maskable interrupt?
Hardware interrupts are classified into two types which are as follows −
Maskable Interrupt − The hardware interrupts that can be delayed when a highest priority interrupt has occurred to the processor.
Non Maskable Interrupt − The hardware that cannot be delayed and immediately be serviced by the processor.
Maskable interrupt is different from Non-Maskable Interrrupt Because,
When maskable interrupt occur, it can be handled after executing the current instruction. When non-maskable interrupts occur, the current instructions and status are stored in stack for the CPU to handle the interrupt.