Simple question that will help me understand my OS class... thanks!
Basically, why is it unsafe to have an interrupt within an interrupt? (or exception within exception)
|
Simple question that will help me understand my OS class... thanks! Basically, why is it unsafe to have an interrupt within an interrupt? (or exception within exception) |
|||||||||
|
|
|||
|
|
|
The general issue is that an interrupt handler will typically manipulate data structures and it would corrupt those data structures if that same code was reentered in mid-update. However, there are many ways to organize interrupt systems and many of those ways allow nested interrupts at different priority levels. Interrupt controllers can mask off interrupts that have not yet been acknowledged by the interrupt handling code, so it is too broad a statement to say that it is "unsafe to have an interrupt within an interrupt". It will depend on the design of the interrupt controller (hardware) and the interrupt handlers (software), as well as the characteristics of the interrupting device and the meaning of the interrupt. |
|||
|
|