HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
  1. Notes
  2. /The Operating System and Interrupts: Quick Revision
Computer Science

The Operating System and Interrupts: Quick Revision

A brief note on the nine functions of an operating system, hardware and software interrupts, and how an interrupt service routine is used. With the usual slips and questions to check yourself.

StemPy LabWritten by StemPy Lab
Log in to save

A brief note on The Operating System and Interrupts. Read it before a test. Try each question at the end before you open its answer.

The functions of an operating system

  • Managing files: where each file is stored; open, save, copy, move, delete; folders.
  • Handling interrupts: each interrupt is dealt with by its routine.
  • Providing an interface: a graphical user interface or a command line.
  • Managing peripherals and drivers: each device is worked through its device driver.
  • Managing memory: which part of RAM each program uses; programs kept apart; memory freed.
  • Managing multitasking: programs take very short turns on the processor.
  • Providing a platform for running applications: applications use its services.
  • Providing system security: passwords, access rights, updates.
  • Managing user accounts: each user has a login, files and settings.

Interrupts

  • An interrupt is a signal to the processor that something needs attention now.
  • Hardware interrupts come from devices: pressing a key on the keyboard, moving the mouse.
  • Software interrupts come from programs: division by zero, two processes trying to access the same memory location.

Handling an interrupt

  1. The processor checks for interrupts at the end of each fetch-decode-execute cycle.
  2. If the interrupt has a higher priority than the task, the state of the task (the register contents) is saved.
  3. The interrupt service routine (ISR) for that interrupt is run.
  4. The state is restored and the task carries on from where it stopped.

The highest priority interrupt is serviced first. The result depends on the routine: a key is stored, the pointer moves, or an error message is shown and a program is stopped.

The usual slips

  • A key press is a hardware interrupt, even though a program then uses the key.
  • Saving the state comes before the routine, and restoring comes after it.
  • The task carries on from where it stopped. It does not start again.

Check yourself

  1. Name the function of the operating system that works a new printer.
  1. Is a division by zero a hardware or a software interrupt?
  1. What does the processor restore after an interrupt service routine has finished?

Sources

  • Cambridge IGCSE Computer Science 0478 syllabus for 2026, 2027 and 2028, section 4.1.
← All Notes
← Types of Software: Quick RevisionLanguages, Translators and IDEs: Quick Revision →
More onComputer Science › Software, Languages and Translators

Discussion (0)

Log in to join the discussion.

Loading…

On this page

  1. The functions of an operating system
  2. Interrupts
  3. Handling an interrupt
  4. The usual slips
  5. Check yourself
  6. Sources

Goes with the lesson

  1. Handling an interruptThe Operating System and Interrupts

More notes on this topic

  1. Languages, Translators and IDEs: Quick Revision
  • Types of Software: Quick Revision
  • Logic Circuits and Truth Tables: Quick Revision
  • NAND, NOR and XOR Gates: Quick Revision
  • NOT, AND and OR Gates: Quick Revision
  • All notes on this topic →