distinguish between interrupts and exceptions?

Answer Posted / santosh

For example, when you are eating dinner at home, suddenly the phone rings, you have to pick up the phone, because it could be an emergency, that is an interrupt. For the exception, it is more like when you are eating, you suddenly find half of dead cockroach in you food, errr~~~~~. After answering the phone or vomiting, we have to go back to our normal life anyway. Hopefully you still have appetite after that "exception".

In a nut shell, interrupts and exceptions both stop the processor's processing flow and force it to do something else and after that it will go back to the normal flow. The difference between interrupts and exceptions is interrupts are triggered by external source, like hardwares or more specific, the keyboard input, system timer etc, but exceptions are caused by the execution of instruction under predefined condition, like divide by zero fault, and there are exceptions for exceptions :), like INT 3 is an exception can be used by user tasks for debuging intentionally.

Is This Answer Correct ?    21 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does the system know where one command ends and another begins?

1578


What is the difference between grep and grep?

569


Which command is used to kill the last background job?

779


What is the difference between cat and more command?

627


What is difference between grep and find command in unix?

579






What is awk good for?

588


Explain how to use grep command to list find the records of a file containing 10 different strings?

593


Who wrote grep?

583


What command is used to switching between users in unix?

564


What is grep and how do you use it?

577


What is the use of find command in unix?

584


What is grep r?

591


What is the use of tee command?

571


Which command can you use to find the currently running process in unix server?

586


Name the unix command to find how many days the server has been up.

600