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 unix command?
What is the difference between cat and more command?
Which command is used to restrict incoming messages?
How many unix commands are there?
Name the unix command to find how many days the server has been up.
How do I use grep to find a file?
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
What command will change your prompt to myprompt?
How do I use nslookup?
What is the use of the tee command?
What do know about tee command?
How do you grep a case insensitive?
What are the dos commands?
Explain ‘library functions’ with respect to unix commands?
Why is it called a shebang?