Interrupt


 
 

In computer science, an interrupt is a signal from a device which typically results in a context switch: that is, the processor sets aside what it's doing and does something else.

~ ~ ~ ~ ~ ~ ~ ~ ~ ~

~ ~ ~ ~ ~ ~ ~ ~ ~ ~

Digital computers usually provide a way to start software routines in response to asynchronous electronic events. These events are signaled to the processor via interrupt requests (IRQ). The processor and interrupt code make a context switch into a specifically written piece of software to handle the interrupt. This software is called the interrupt service routine, or interrupt handler. The addresses of these handlers are termed interrupt vectors and are generally stored in a table in RAM, allowing them to be modified if required.

~ ~ ~ ~ ~ ~ ~ ~ ~ ~

Interrupts were originated to avoid wasting the computer's valuable time in software loops (called polling loops) waiting for electronic events. Instead, the computer was able to do other useful work while the event was pending. The interrupt would signal the computer when the event occurred, allowing efficient accommodation for slow mechanical devices.

~ ~ ~ ~ ~ ~ ~ ~ ~ ~

Interrupts allow modern computers to respond promptly to electronic events, while other work is being performed. Computer architectures also provide instructions to permit processes to initiate software interrupts or traps. These can be used, for instance, to implement co-operative multitasking.

~ ~ ~ ~ ~ ~ ~ ~ ~ ~

A well-designed interrupt mechanism arranges the design of the computer bus, software and interrupting device so that if some single part of the interrupt sequence fails, the interrupt restarts and runs to completion. Usually there is an electronic request, an electronic response, and a software operation to turn off the device's interrupt, to prevent another request.

~ ~ ~ ~ ~ ~ ~ ~ ~ ~


 

Computer science: Computer science (abbreviated CS or compsci) encompasses a variety of topics that relates to computation, like abstract analysis of algorithms, formal grammars, and subjects such as programming languages, program design, software, computer hardware, artificial intelligence, and numerical analysis. B...

Context switch: A context switch is the computing process of storing and restoring the state of a CPU (the context) such that multiple processes can share a single CPU resource. The context switch is an essential feature of a multitasking operating system. Context switches are usually computationally intensive and...

Computer: A computer is a device or for processing information from data according to a program — a compiled list of instructions. The information to be processed may represent numbers, text, pictures, or sound, amongst many other types....

~ Table of Content ~

Introduction
Interrupt types
 
FR: Interruption (informatique)


 

~ Related Subjects ~

Context switch (2) - Computer science (2) - Computer hardware (1) - Artificial intelligence (1) - Software (1) - Programming language (1) - Program (1) - Multitasking (1) - Operating system (1) - CPU (1) - Numerical analysis (1) - Computing (1) - IRQ (1) - Interrupt handler (1) - Processor (1) -
 

~ Community ~

History Forum
Come and discuss about History, Civilizations, Historical Events and Figures
History Web-Ring
A community of sites, blogs and forums dedicated to History. Do not hesitate to submit your site.