levo

Interrupts, Memory Management and Scheduling

Interrupt handling and the interrupt service routine

  • 3 things to know
  • Component 2
Start revising · £5/month

Overview

What happens immediately after the processor accepts an interrupt, interrupt service routine and interrupt vector.

What you need to know

Answer each one before you reveal it.

Your recallNot started
Process

When in the fetch-execute cycle does the processor test for an interrupt?

Key term

Why is the current instruction completed before an interrupt is serviced?

Process

Describe what happens immediately after the processor accepts an interrupt.

Questions from this subtopic

Each one with the model answer underneath.

  1. 1

    When in the fetch-execute cycle does the processor test for an interrupt?

    Model answer

    The processor checks the interrupt register at the end of each fetch-execute cycle. The instruction in progress is always completed first.

  2. 2

    Why is the current instruction completed before an interrupt is serviced?

    Model answer

    A half-executed instruction would leave the registers and memory in an inconsistent state. Completion keeps the interrupted process restartable.

  3. 3

    Describe what happens immediately after the processor accepts an interrupt.

    Model answer

    The contents of the program counter and the other registers are copied onto a stack. The address of the correct service routine is then loaded into the program counter.

  4. 4

    What is an interrupt service routine?

    Model answer

    An interrupt service routine is the section of operating system code that deals with one kind of interrupt. The routine executes in kernel mode.

  5. 5

    What is an interrupt vector?

    Model answer

    An interrupt vector is the stored address of the service routine for one particular interrupt. The vector table holds one entry for each type of interrupt.

  6. 6

    Why are the register contents saved on a stack rather than in fixed locations?

    Model answer

    A stack allows one interrupt to be serviced while another is already being handled. The most recently saved state is always restored first.

Other ways to work this

The same content, four other ways.

Everything in your subscription

Runs, plus a mode for every other kind of session.

1Flash
2Imposter
3Fade
4Brain dump

Learn every subtopic in runs of four questions

Facts flash and fade, a wrong word hides in some of them, and a brain dump decides which questions are locked in.

Data Structures: Arrays, Records and Hash Tables
Stacks, Queues, Linked Lists and Trees
Boolean Logic and Simplification
Algorithms, Pseudo-Code and Programming Constructs

Cram the night before, weakest topic first

A quick scan finds your weakest topics. Recall each fact you missed three times in a row.

KDW to HAT.
decryptsencryptscompresses

Blank Blitz consolidates the facts

Rapid timed gap-fills on the terms and numbers you need to recall without thinking.

✓What it iscovered
~Why it happenspartly there
How long it lastsnot there yet

Explain It tests your understanding

Explain a concept in your own words and see which of its points you covered.

Backup means the copy of the data.
TrueFalse

Test It catches misconceptions

Spot the fault in a statement. The faults are the mistakes students make most often.

721941163128510

Brain Breaks between sessions

Short focus games to reset attention, so the next set lands better than the last.

Every question in Interrupts, Memory Management and Scheduling, on a schedule.

Learn it in runs of four questions, each ending on a brain dump against the clock. Every question you lock in comes back the next day, then at longer gaps, each time just before you would forget it.

Or £46 a year, about £3.83 a month. Cancel anytime.