Difference between revisions of "Interrupts"

From TRCCompSci - AQA Computer Science
Jump to: navigation, search
(Created page with "=Overview= <youtube>https://www.youtube.com/watch?v=PCYI1o592dQ&list=PLCiOXwirraUDUYF_qDYcZV8Hce8dsE_Ho&index=122</youtube> https://www.youtube.com/watch?v=PCYI1o592dQ&list=P...")
 
(Interrupt)
Line 5: Line 5:
  
 
=Interrupt=
 
=Interrupt=
Devices use interrupts to request action from the processor.
+
An interrupt is a signal from a peripheral or software program that causes the operating system to stop processing its current list of instructions. This will attract the attention of the processor, this will occur for example when a process or instruction causes an error to occur, for example if your printer is out of paper or if a program has crashed.
 +
 
 +
An interrupt would also be generated when the user presses a key or moves the mouse.
 +
 
 +
The operating system is responsible for detecting the interrupt signal and performing the necessary tasks or displaying the appropriate messages. Multi-tasking is only possible because the processor can be interrupted in this way.

Revision as of 17:06, 5 January 2019

Overview

https://www.youtube.com/watch?v=PCYI1o592dQ&list=PLCiOXwirraUDUYF_qDYcZV8Hce8dsE_Ho&index=122

Interrupt

An interrupt is a signal from a peripheral or software program that causes the operating system to stop processing its current list of instructions. This will attract the attention of the processor, this will occur for example when a process or instruction causes an error to occur, for example if your printer is out of paper or if a program has crashed.

An interrupt would also be generated when the user presses a key or moves the mouse.

The operating system is responsible for detecting the interrupt signal and performing the necessary tasks or displaying the appropriate messages. Multi-tasking is only possible because the processor can be interrupted in this way.