The CPU checks,at the beginning of the fetch-decode-execute cycle to see if an interrupt is pending.(This is often done via a special status or flag register.)If so,an interrupt handling routine is dispatched,which itself follows the fetch-decode-execute cycle to process the handler's instructions.When the routine is finished,normal execution of the program continues.