The mechanism for dealing with exceptions is essential to prevent, along with ways of implementing the CPU and protection mechanisms of memory, applications that perform operations that are not permitted. In any case, the specific treatment of an exception is done by the OS.
As in the case of interruptions, the hardware is limited to leave control the OS, and this is the one that deals with the situation as appropriate.
It is quite common for treating an exception fails to return to the program that was being performed when the emergency occurred, but the OS abort the implementation thereof. This factor depends on the skill of the programmer to control the emergency properly.
Related Products from Amazon | |||||
---|---|---|---|---|---|
Operating System Concepts (7th Edition)by Abraham Silberschatz, Peter Baer Galvin, and Greg Gagne(Hardcover – Dec 14, 2004) | Modern Operating Systems (3rd Edition) (GOAL Series)by Andrew S. Tanenbaum(Hardcover – Dec 21, 2007) | Operating System Conceptsby Abraham Silberschatz, Peter Baer Galvin, and Greg Gagne(Hardcover – Jul 28, 2008) |