The handling of the interrupt request 3 releases the resource A (l), releases the resource B (m), and completes the execution of the interrupt handling (n).
The interrupt handling 1 is restarted (p) and the handling of the interrupt request 4 is permitted to use the resource A (q).