Interrupts Flashcards
Define an exeption
a synchronous event generated by the processor when a condition occurs
what are the conditions where an exeption is thrown
divide by 0
unkown instruction
ALU overflow
floating point maths error
memory access error
What is a timing interrupt
mechanism where a processor is interrupted at regular intervals
(i.e in round robin)
How does the computer handle break points
replaces the instruction with a software interrupt
original instruction saved by the debugger
define input device interrupt
transfer data to input buffer and if buffer is full disable interrupts
kernel call for input
if input buffer is not empty return data else deschecudle the program
output device interrupt
transfer data to the device if buffer empty disable interrupts
kernel call for output
transfer data to output buffer enable interrupts if output buffer full deschedule
errors
deschedule program