Describe the problems associated with the timing of interrupts with respect to.
- Software Events
The problem with interrupts is that their occurrence cannot be predicted. They could occur at any time. Critical code portions should be protected by disabling
interrupts for their duration. A typical example is accessing shared data.The use of interrupts can affect the timing of existing coded routines. This effect
is unpredictable, due to the nature of interrupts. Code which is heavily timing dependent may not work when interrupts are enabled. These timing critical portions need to be protected also.
The processing of interrupts should be kept as short as possible, with reguard to the duration of the software event in question.