Interrupts Flashcards
What is an interrupt?
A signal for the CPU to top what it is doing and carry out the interrupt task, carried out by the interrupt service routine
Input/Output Interrupt
generated by the I/O devices to signal a job is complete or an error has occurred
Timer Interrupts
Generated by an internal clock to signal that the processor should attend a time critical activity
What is the Interrupt Service Routine?
The part of the OS which is responsible for dealing with interrupt signals. A program with a set of instructions that need to be FDE to carry out the operations of the interrupt
How does the ISR work?
All previous tasks are placed in a stack.
The ISR places the interrupt into a queue as necessary.
Once the interrupt is complete, the pervious tasks are brought back from the stack.
Objectives of the ISR
- Maximise the use of the whole computer system
- Be fair to all users
- Provide reasonable response time to all users
- Prevent the system failing or becoming overloaded
- Ensure the system is consistent by giving similar response times to similar jobs
Software Interrupts
Detect and fix errors. They prevent crashes caused by unexpected conditions