In systems programming, an interrupt is a signal to the processor emitted by hardware or software indicating an event that needs immediate attention. An interrupt alerts the processor to a high-priority condition requiring the interruption of the current code the processor is executing, the current thread. The processor responds by suspending its current activities, saving its state, and executing a small program called an interrupt handler (or interrupt service routine, ISR) to deal with the event. This interruption is temporary, and after the interrupt handler finishes, the processor resumes execution of the previous thread. There are two types of interrupts:

A hardware interrupt is an electronic alerting signal sent to the processor from an external device, either a part of the computer itself such as a disk controller or an external peripheral. For example, pressing a key on the keyboard or moving the mouse triggers hardware interrupts that cause the processor to read the keystroke or mouse position. Unlike the software type (below), hardware interrupts are asynchronous and can occur in the middle of instruction execution, requiring additional care in programming. The act of initiating a hardware interrupt is referred to as an interrupt request (IRQ).

A software interrupt is caused either by an exceptional condition in the processor itself, or a special instruction in the instruction set which causes an interrupt when it is executed. The former is often called a trap or exception and is used for errors or events occurring during program execution that are exceptional enough that they cannot be handled within the program itself. For example, if the processor's arithmetic logic unit is commanded to divide a number by zero, this impossible demand will cause a divide-by-zero exception, perhaps causing the computer to abandon the calculation or display an error message. Software interrupt instructions function similarly to subroutine calls and are used for a variety of purposes, such as to request services from low level system software such as device drivers. For example, computers often use software interrupt instructions to communicate with the disk controller to request data be read or written to the disk.

Each interrupt has its own interrupt handler. The number of hardware interrupts is limited by the number of interrupt request (IRQ) lines to the processor, but there may be hundreds of different software interrupts.

Interrupts are a commonly used technique for computer multitasking, especially in real-time computing. Such a system is said to be interrupt-driven.

Read more about Interrupted:  Overview, Difficulty With Sharing Interrupt Lines, Performance Issues, Typical Uses

Other articles related to "interrupted":

Dream, Fulfilled - Overview - Availability
... Dream, Fulfilled, along with Dream, Interrupted, was a UK-only release as such, an extremely small number of copies exist in the United States (presumably due to a lack of a ... the UK only a limited amount of copies have been circulated, making Dream, Interrupted and Dream, Fulfilled extremely hard to come by ... titles were all out of print—available for sale digitally, including the once-scarce Dream, Interrupted ...
Girl Interrupted At Her Music - Girl, Interrupted
... Hospital for psychiatric treatment, Girl, Interrupted and it was an integral part of Kaysen's mental recovery and understanding ...
Slayer, Interrupted - Story Description - Buffy The Vampire Slayer #59
... Comic title "Slayer, Interrupted, act 4" Buffy does not know whom she can trust but she tries to save the group of young girls from the demon that feeds off ... Fair The Origin Viva Las Buffy! Slayer, Interrupted A Stake to the Heart The Queen of Hearts Dust Waltz Ring of Fire Paint the Town Red Play with Fire The Remaining Sunlight Uninvited Guests The Final Cut ...
Interrupted - Typical Uses
... A classic system timer generates interrupts periodically from a counter or the power-line ... The interrupt handler counts the interrupts to keep time ...

Famous quotes containing the word interrupted:

    A designer who is not also a couturier, who hasn’t learned the most refined mysteries of physically creating his models, is like a sculptor who gives his drawings to another man, an artisan, to accomplish. For him the truncated process of creating will always be an interrupted act of love, and his style will bear the shame of it, the impoverishment.
    Yves Saint Laurent (b. 1936)

    A lifetime of cleverness can be interrupted by moments of stupidity.
    Chinese proverb.

    “Speak when you’re spoken to!” the Queen sharply interrupted her.
    “But if everybody obeyed that rule,” said Alice, who was always ready for a little argument, “and if you only spoke when you were spoken to, and the other person always waited for you to begin, you see nobody would ever say anything, so that—”
    Lewis Carroll [Charles Lutwidge Dodgson] (1832–1898)