Interrupt service routine (ISR)
A small program the CPU runs to deal with one particular interrupt. Each type of interrupt has its own ISR, kept in memory, and it is short so the CPU can quickly return to its task.
Understanding Interrupt service routine (ISR) in IGCSE Computer Science Paper 1
What it does: The OS matches the type of interrupt to the correct ISR and then runs it. The routine does only the few steps needed and then hands control straight back to the interrupted task. An ISR is software. It is the code that handles an interrupt. It is not the device or the signal that causes it. ISRs are stored in memory so the CPU can find and run the right one straight away when an interrupt happens. The operating system works out which type of interrupt has happened and picks the matching ISR to run. A short ISR finishes quickly, so the CPU soon goes back to its original task and the computer stays responsive.
Common mistakes: Each type of interrupt has its own ISR. A printer interrupt must run printer_ISR, not the keyboard ISR. An ISR must be short so the CPU can return quickly. It should end with RETURN TO previous_task, not wait for more keys.
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 service routine (ISR)Fill in the Blanks
Spot the Error
Student with a class code? Join your class →