O'Reilly logo

Object-Oriented Programming with C++ by A.K. Sharma

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

11

EXCEPTION HANDLING

11.1 INTRODUCTION

When a teacher is in a class, his/her lecture can be disrupted by either of the following two events:

  1. Somebody from outside the class interrupts the lecture by knocking on the door. This event is an asynchronous event because the teacher has nothing to do with this disruption. At his/her convenience, the teacher suspends his/her lecture and listens to what the visitor has to say.

    This is a situation similar to a device interrupting the CPU for seeking a particular service. The CPU suspends the execution of the current program, saves its context, and jumps to an interrupt service routine.

    There is no specific time for the interrupt to occur. The CPU need not handle the interrupt immediately but only when ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required