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 is nr in awk command?
What does this command do? Cat food 1 > kitty
What is time_t?
What do chmod, chown, chgrp commands do?
What is the difference between cat and more command?
Does cp command overwrite files?
What is the general format of unix command syntax?
Write a command to display a file’s contents in various formats?
Are you in or at the office?
Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.
What is the use of tee command?
Write a command to kill the last background job?
What is {} in find command?
How do I use nslookup?
How do you grep a case insensitive?