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 does the command ' $who | sort –logfile > newfile' do?
What is ‘ps’ command for?
What is the size of time_t?
Who invented grep?
How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?
What is grep r?
Are you in or at the office?
Give the command for finding the current date.
What are bash commands?
what is the advaantage of each user having its own copy of the shell?
What is a bash command?
What is the comma to display different lines that are found when compare two files?
Write a command to display a file’s contents in various formats?
What is sed awk grep?
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