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
How does the system know where one command ends and another begins?
What is the difference between grep and grep?
Which command is used to kill the last background job?
What is the difference between cat and more command?
What is difference between grep and find command in unix?
What is awk good for?
Explain how to use grep command to list find the records of a file containing 10 different strings?
Who wrote grep?
What command is used to switching between users in unix?
What is grep and how do you use it?
What is the use of find command in unix?
What is grep r?
What is the use of tee command?
Which command can you use to find the currently running process in unix server?
Name the unix command to find how many days the server has been up.