Interruption or interrupt is a special request to the microprocessor to do something, in case of interruption, the computer will stop the advance of what they're doing and do what is requested by the interrupt, after the flow of the program will return to the program statement before the interruption. Interrupt subroutine is already available in the computer's memory.
interrupt function
- Interrupt transfer control to the interrupt service routine by the interrupt vector that contains the addresses of all the service routines.
- Interrupt architecture must save the address of the instruction that the interrupt.
- Interrupt next coming undone when another interrupt is being processed to prevent the loss of an interrupt
- Programs, caused by the execution of an instruction
- Timmer, caused by a trimmer processor
- I / O, caused by I / O controller either as a sign that the operation has been completed and signaled an error.
- Hardware failure, caused by a hardware fault such as power failure and memory parity error.
- Syncronous I / O. I / O is executed, the I / O completion is used, inform the control back to the user process. To wait for the completion use of I / O, use the command wait.
- Asynchronous I / O. Back to user program without waiting for I / O.
Note: When an interrupt occurs, the microprocessor will stop the time what he was doing and working on specific request.
The types of interrupts
- Software, interrupt type is also called a system call. For example, a program to print the results to the printer
- Hardware, occurs because of the action of the hardware, such as keystroke or mouse move. Interrupt is divided into two, namely: Maskable Interrupt (occurring due to external action) and Non-Maskable Interrupt (due to memory or parity error in the program)
http://gudangmakalahkuliah.blogspot.co.id/2013/12/interupsi-pada-komputer.html
http://newonenext.blogspot.co.id/2012/06/proses-terjadinya-kenapa-terjadi.html
