The following example attaches the interrupt THEPHONE to the event THEBELL. When THEBELL is caused, the code associated with THEPHONE begins executing.
ATTACH THEPHONE TO THEBELL
The following example attaches the interrupt ANSWERHI to the event MYSELF.EXCEPTIONEVENT. Whenever the task MYSELF undergoes a change in status, the EXCEPTIONEVENT attribute is caused, and the code associated with ANSWERHI begins executing.
ATTACH ANSWERHI TO MYSELF.EXCEPTIONEVENT

