distinguish between interrupts and exceptions?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What does the “echo” command do?

628


What are the commands in UNIX to list the files in a Directory?

622


What does find command return in unix?

600


What is the behavioural difference between cmp and diff commands?

684


What is the difference between cat command and more command?

603






Write a command to display a file’s contents in various formats?

631


What is the use of the tee command?

602


What are filter commands in unix?

555


Can you explain a little bit about command substitution?

614


What does grep v do?

564


What is rmdir command?

557


What are file commands?

656


What is the difference between grep and grep?

571


What are some command words?

569


why metadb requires a seperate slice to create Solaris volume manager

2560