Software interrupts
A signal sent to the CPU by a program or the processor itself when a process hits an error (e.g. divide by zero, invalid instruction) or needs an OS service, so the CPU pauses it.
Understanding Software interrupts in IGCSE Computer Science Paper 1
What it does: Both processes access the same memory address at the same time. This is a conflict, so a software interrupt is raised. An invalid instruction cannot be decoded or executed, so the processor generates a software interrupt. Division by zero is an error inside a running process, so a software interrupt is generated. Hardware interrupts come from devices such as a keyboard. The CPU stops the current process, saves its state and runs an interrupt service routine to deal with the interrupt.
Common mistakes: A divide by zero error happens when the divisor equals 0, so the check must be IF divisor = 0 THEN. Testing for a value greater than 0 would raise the software interrupt for valid divisors. Dividing by 1 is fine. The error (and the software interrupt) happens when the divisor is 0, so the line should be IF b = 0 THEN.
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 390–408) 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
software interruptFill in the Blanks
Spot the Error
Student with a class code? Join your class →