distinguish between interrupts and exceptions?

Answers were Sorted based on User's Feedback



distinguish between interrupts and exceptions?..

Answer / mohit chandila

An Interrupt is an interface to external stimulii. The
System interacts with the user or external devices via
interrupts.

An Exception on the other hand is a condition that is
strange enough for the system to handle appropriatly. It is
produced within the system. It can be a result of poor code
or a limitation of the system itself such as the "Divide by
Zero Error"

Is This Answer Correct ?    15 Yes 1 No

distinguish between interrupts and exceptions?..

Answer / roy

An interrupt is an asynchronous signal from hardware
indicating the need for attention or a synchronous event in
software indicating the need for a change in execution. A
hardware interrupt causes the processor to save its state
of execution via a context switch, and begin execution of
an interrupt handler. Software interrupts are usually
implemented as instructions in the instruction set, which
cause a context switch to an interrupt handler similar to a
hardware interrupt. Interrupts are a commonly used
technique for computer multitasking, especially in real-
time computing. Such a system is said to be interrupt-
driven. An act of interrupting is referred to as an
interrupt request ("IRQ").

Exceptions are conditions that changes the normal flow of
execution. In the context of normal flow, exceptions can be
categorised as error situations. Depending upon the program
exception conditions may need to be handles in the
software.

In a way Interrupts and Exceptions can be related to each
other, in the fact that certain exception handling may
result in generating interrupts. In otherwords certain
interrupts can be manifestation of certain error/exceptions.

Is This Answer Correct ?    13 Yes 2 No

Post New Answer

More Unix Commands Interview Questions

Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.

0 Answers  


what are the different hardwares available?

1 Answers  


What is the command to compare two files in unix?

0 Answers  


what is the difference between SED and GREP ? Which one is more better and why?

4 Answers   IBM,


How do I run a bash script?

0 Answers  






fork in unix ?

4 Answers   BFL,


Assume the following files are in the working directory prompt> ls -l tasks -rw-r--r-- 1 alex student 1423 Feb 21 14:01 tasks What command can Alex use to give everyone permission to write to the file? What will the ls -l command display if he does so?

10 Answers   Infosys,


What does pipe () return?

0 Answers  


What difference between cmp and diff commands?

0 Answers  


Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?

0 Answers  


Explain the steps that a shell follows while processing a command.

0 Answers  


What is the difference between cat and more command?

0 Answers  


Categories