top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

OS: What's difference between hardware interrupt and software interrupt ?

0 votes
1,846 views

Can someone please explain using any example ?

posted Jun 1, 2014 by Ganesh Kumar

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

1 Answer

0 votes

First lets understand what is an Interrupt: An interrupt is a special signal that causes the computer’s central processing unit to suspend what it is doing and transfers its control to a special program called an interrupt handler.

Now coming to your query -

Hardware Interrupt is caused by some hardware device such as request to start an I/O, a hardware failure or something similar. Hardware interrupts were introduced as a way to avoid wasting the processor's valuable time in polling loops, waiting for external events.

Software Interrupt is invoked by the use of INT instruction. This event immediately stops execution of the program and passes execution over to the INT handler. The INT handler is usually a part of the operating system and determines the action to be taken e.g. output to the screen, execute file etc.

answer Jun 1, 2014 by Devyani
Similar Questions
+4 votes

So many times, we make foreground process to background process in linux system. How does it handle internally ?

0 votes

What's the basic difference between hardware and software solutions for critical section problem? Why are they called hardware or software solution?

...