Computer-Science-A-level-Ocr
-
3-3-networks8 主题
-
3-2-databases7 主题
-
3-1-compression-encryption-and-hashing4 主题
-
2-5-object-oriented-languages7 主题
-
2-4-types-of-programming-language4 主题
-
2-3-software-development5 主题
-
2-2-applications-generation6 主题
-
2-1-systems-software8 主题
-
1-3-input-output-and-storage2 主题
-
1-2-types-of-processor3 主题
-
1-1-structure-and-function-of-the-processor1 主题
-
structuring-your-responses3 主题
-
the-exam-papers2 主题
-
8-2-algorithms-for-the-main-data-structures4 主题
-
8-1-algorithms10 主题
-
7-2-computational-methods11 主题
-
7-1-programming-techniques14 主题
-
capturing-selecting-managing-and-exchanging-data
-
entity-relationship-diagrams
-
data-normalisation
-
relational-databases
-
hashing
-
symmetric-vs-asymmetric-encryption
-
run-length-encoding-and-dictionary-coding
-
lossy-and-lossless-compression
-
polymorphism-oop
-
encapsulation-oop
-
inheritance-oop
-
attributes-oop
-
methods-oop
-
objects-oop
-
capturing-selecting-managing-and-exchanging-data
-
6-5-thinking-concurrently2 主题
-
6-4-thinking-logically2 主题
-
6-3-thinking-procedurally3 主题
-
6-2-thinking-ahead1 主题
-
6-1-thinking-abstractly3 主题
-
5-2-moral-and-ethical-issues9 主题
-
5-1-computing-related-legislation4 主题
-
4-3-boolean-algebra5 主题
-
4-2-data-structures10 主题
-
4-1-data-types9 主题
-
3-4-web-technologies16 主题
-
environmental-effects
-
automated-decision-making
-
computers-in-the-workforce
-
layout-colour-paradigms-and-character-sets
-
piracy-and-offensive-communications
-
analysing-personal-information
-
monitoring-behaviour
-
censorship-and-the-internet
-
artificial-intelligence
-
the-regulation-of-investigatory-powers-act-2000
-
the-copyright-design-and-patents-act-1988
-
the-computer-misuse-act-1990
-
the-data-protection-act-1998
-
adder-circuits
-
flip-flop-circuits
-
simplifying-boolean-algebra
-
environmental-effects
system-interrupts
System Interrupts
What are interrupts?
-
In A Level Computer Science, an interrupt is a signal to the processor that stops its current task and performs a different task temporarily
-
Interrupts can be hardware events or time-sensitive tasks
-
When an interrupt occurs, the processor suspends the current program execution and transfers control to an interrupt service routine
Purpose and role of interrupts
-
Real-time Event Handling: hardware errors and signals from input devices e.g. hard disk failure
-
Device Communication: alerts from external devices e.g. printer jams and network errors
-
Multitasking: suspending processing in one application so that the user can switch to another
Types of interrupts
|
Type |
Definition |
Example |
|---|---|---|
|
Hardware Interrupts |
Generated by external devices |
Keyboard input, mouse movements, disk I/O requests |
|
Software Interrupts |
Triggered by software or the operating system |
Application requests to open a file, division by zero errors |
|
Trap Interrupts |
Intentionally triggered by a program |
Software debugging, handling unexpected error cases |
The interrupt process
-
Interrupt Request (IRQ)
-
An external device or software generates an interrupt, signalling the processor to stop its current task
-
The interrupt controller passes this to the interrupt handler for assessment
-
-
Interrupt Acknowledge
-
The interrupt handler decides if the interrupt needs to be dealt with now or later
-
If yes, the current contents of the processor registers are saved in memory
-
-
Interrupt Service Routine (ISR) Lookup
-
The processor fetches the corresponding Interrupt Service Routine (ISR) associated with the interrupt type
-
-
ISR Execution
-
The processor transfers control to the ISR and executes the routine to handle the specific interrupt
-
-
Interrupt Exit
-
After the ISR completes, the processor restores the content of the registers from step 2
-
The fetch-decode-execute cycle is resumed
-

The interrupt process
What is an ISR?
-
An ISR is a special function that handles a particular interrupt type
-
Each type of interrupt has a corresponding routine, e.g. printer jam, hard disk failure, file download error, network connection error all have routines to be followed when they happen
-
ISRs should be concise, efficient, and carefully designed to minimise the time taken to execute, as they often need to handle time-sensitive events
Interrupt priority and nesting
-
Interrupt prioritisation means the processor can acknowledge and switch to resolving a higher-priority interrupt
-
Prioritising interrupts is vital because many things can go wrong at the same time
-
Lower-priority ISRs may be temporarily suspended until the higher-priority ISR completes the execution
-
Nesting of interrupts refers to the ability of the processor to handle interrupts within interrupts
-
Proper management of nested interrupts avoids potential conflicts and ensures system stability

Nesting of interrupts
Interrupt priority handling

System handling of interrupt priority
Responses