levo

Interrupts, Memory Management and Scheduling

Interrupt handling and the interrupt service routine

  • 3 things to know
  • Component 2

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.

What is inside Levo

Six ways to work the same material.

1Closed book
2Open book
3Closed book

The 3-step method, run for you

Answer cold, learn it, then prove it stuck. Levo tracks the jump between your first attempt and your last.

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

Cram a whole paper in one sitting

Sort every topic into what you know and what you do not, then drill only the weak ones.

KDW to HAT.
decryptsencryptscompresses

Blank Blitz makes facts automatic

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

AThe two are not the same.
BOpen source refers to the availability of the code.
CMuch open source software is free of charge.

Build It gets the exam shape right

Assemble a full-mark answer from its marking points, in the order an examiner wants them.

Backup means the copy of the data.
TrueFalse

Test It catches misconceptions

Spot the fault in a statement. The traps are the mistakes students actually make.

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.

Attempt a question from memory, write the correct version, then attempt it again. Levo records the jump between your first attempt and your last, and brings each question back on the day you are due to forget it.

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