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
What are reported commands?
What are awk commands?
What does the metacharacter mean?
What is the difference between grep and grep?
What does sed command do in unix?
Name the general commands in using unix os for a beginner?
Give the command for finding the current date.
Describe the usage and functionality of the command rm –r * in unix?
What is {} in find command?
What is the use of egrep command in unix?
What is ‘ps’ command for?
What is the command to view process running?
Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?
Write a command to display a file’s contents in various formats?
How do I delete files from command prompt?