distinguish between interrupts and exceptions?
Answer Posted / sairam kulkarni
Interrupts and exceptions both alter the program flow. The
difference
between the two is that interrupts are used to handle
external events
(serial ports, keyboard) and exceptions are used to handle
instruction
faults, (division by zero, undefined opcode).
Interrupts are handled by the processor after finishing the
current
instruction. If it finds a signal on its interrupt pin, it
will look up
the address of the interrupt handler in the interrupt table
and pass
that routine control. After returning from the interrupt
handler
routine, it will resume program execution at the
instruction after the
interrupted instruction.
Exceptions on the other hand are divided into three kinds.
These are
Faults, Traps and Aborts. Faults are detected and serviced
by the
processor before the faulting instructions. Traps are
serviced after
the instruction causing the trap. User defined interrupts
go into this
category and can be said to be traps; this includes the MS-
DOS INT 21h
software interrupt, for example. Aborts are used only to
signal severe
system problems, when operation is no longer possible.
| Is This Answer Correct ? | 52 Yes | 5 No |
Post New Answer View All Answers
Can you explain a little bit about command substitution?
How do I open a port?
What is the use of awk command in unix?
Differentiate cat command from more command.
What does the command ' $who | sort –logfile > newfile' do?
What is the function of grep command in unix?
What do know about tee command?
What is the search command in unix?
Who wrote grep?
When i run a programm of orphan process. Instead of getting child's parent (ppid)=1 ..i get 1400 and it varies as per system.
How can i findthe right soluion???
My pgm:
#include
how to sort the content of the file based on numeric values
How can you see the command line history?
What is the use of tee command?
What are the commands in UNIX to list the files in a Directory?
Which command can you use to find the currently running process in unix server?