hi Paul,
Interrupts.
Condition #1.
Assume you are watching a DVD movie, the front door bell rings, you stop the DVD player and you go to answer the door.
You take care of the person at the door and then go back and restart the DVD where it left off.
Condition #2.
Assume you are watching a DVD movie, the front door bell rings, you stop the DVD player and you go to answer the door.
While you are talking to the person at the front door the phone rings, it could be important, so you tell the person at the door to wait and you answer the phone.
You take care of the person on the phone , hang up and then go back and deal with the door caller, when done you go back and restart the DVD where it left off.
Condition #3.
Assume you are watching a DVD movie, the front door bell rings and the phone rings at the same time, you stop the DVD player.
You now have to decide which caller will be given priority.
So basically, if you have more than one source of interruption, when an interrupt occurs you test the interrupt flags you have enabled, in order to determine who is interrupting and if necessary decide priority,