A-level Computer Science revision · Processors, software and development

Interrupts and types of operating system

The idea

An interrupt is a signal to the CPU that something needs attention. At the end of each fetch-decode-execute cycle, the CPU checks for interrupts; if one has higher priority, it saves the current registers to a stack, runs the interrupt service routine, then restores them. OS types include distributed, embedded, multi-tasking, multi-user and real-time.

  1. Check for interrupts after each cycle.
  2. Save state, run the ISR, restore state.
  3. Match OS type to use: real-time for guaranteed response.

Watch out A lower-priority interrupt waits until the current higher-priority task finishes.

See it worked

Worked example

Which OS type suits an aircraft's flight controls?

  1. Responses must be guaranteed within a time limit.
  2. A real-time operating system.

Answer Real-time

Your turn

Question 11 mark

Where are register contents stored when an interrupt is serviced?

Choose one
Question 21 mark

Which OS type is designed for a single task in a device such as a washing machine?

Choose one
Question 32 marks

Explain what happens when a printer runs out of paper while printing.

Write your answer, then see a model answer
  1. Name the interrupt.
  2. Describe the handling.

Answer It sends an interrupt; at the end of the current cycle the CPU checks priority, saves its registers, runs the routine to alert the user, then restores the registers and resumes.

A-level Computer Science Pro, OCR H446

A-level Computer Science Pro

£119 once

Price rises to £199 on 1 January. Save £80 by joining before then.

At least 12 months of access

By paying you agree to our Terms and get access straight away, which ends your 14-day cancellation right.

No VAT is charged.

Independent practice for OCR A-level Computer Science (H446), not endorsed by OCR.

Privacy · Terms