top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is an Interrupt, what are their types and usage?

+1 vote
599 views
What is an Interrupt, what are their types and usage?
posted Aug 1, 2015 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

An interrupt is an signal to the processor to suspend the current executing process and run the specified process and after execution of specified process then it again execute the previous process
Types of interrupts are:
program interrupt
timer interrupt
I/o interrupt
hardware interrupt

answer Aug 2, 2015 by Kajana.supriya
Similar Questions
+4 votes

I am getting confused between trap and interrupt. As trap is software driven and interrupt is hardware originated. Every instruction of a program get executed in CPU then how trap and interrupt differs ? A detailed example can help out me. Thanks in advance.

+1 vote

I am maintaining a program in Python 2 and need to send it a Keyboard Interrupt to close it. Unfortunately, the program is used as a subprocess in a wrapper subprocess, and so I cannot just directly press CTL-C; I have to use a signal.
When I run the program "bare" (not in a subprocess), I have found that raising a SIGINT (kill -2) raises a Keyboard Interrupt in the program. But when I run the program in the wrapper process, kill -2 no longer has any effect (whether it is raised by the wrapper or externally).
Why is that the case? Does Pythons interpretation of SIGINT as a Keyboard Interrupt only obtain when the program is run in a terminal? Is there something else Im missing?

0 votes

Can someone please explain using any example ?

...