Interrupt priority
Each interrupt has a priority level. The CPU handles the most urgent one first, so a power failure can pause the handling of a less urgent key press.
Understanding Interrupt priority in IGCSE Computer Science Paper 1
What it does: The code compares the two priorities and pauses the less urgent ISR so the more urgent interrupt is dealt with first. A power failure is very urgent because the computer may lose data and shut down. A key press can safely wait a moment. The power failure has the higher priority, so it is handled first. How often an event happens does not decide priority; urgency does. A higher priority interrupt can pause a lower priority one. Only the lower priority interrupt waits.
Common mistakes: A power failure has a higher priority number than a key press, so the CPU must handle it first. The test should be powerP > keyP, not <. A power failure is very urgent, so it needs a high priority such as 10. Giving it priority 1 would make it less urgent than a key press, which is wrong.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 409–418) and word search (Modules 390–418).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
interrupt priorityFill in the Blanks
Spot the Error
Student with a class code? Join your class →