Multiple choiceQuestion 1 · Recall
Loading…
By the end you can explain why interrupts exist, list typical causes and applications, say when an interrupt is detected, and describe how one is handled using an Interrupt Service Routine (ISR).
A printer finishes a job. A key is pressed. The clock ticks.
Without interrupts, the CPU would have to keep asking every device "are you ready?" in a loop, wasting cycles — or worse, ignore them until the program chose to look.
An interrupt is a signal, sent to the CPU along the control bus, saying "something needs your attention now." The CPU pauses what it is doing, deals with the event, then picks up exactly where it left off.
Interrupt
A signal raised by a device or by the processor itself that causes the CPU to stop executing the current program temporarily, deal with the event, and then resume.
Common causes:
Applications the syllabus wants you to recognise:
Worked example: A key press mid-calculation
The CPU is halfway through a long loop when a key is pressed. Follow the sequence.