Thinking in C++ Vol 2 - Practical Programming |
Prev |
Home |
Next |
In previous examples, we have seen the use of a quit flag
or the Cancelable interface in order to terminate a task. This is a
reasonable approach to the problem. However, in some situations the task must
be terminated more abruptly. In this section, you ll learn about the issues and
problems of such termination.
First, let s look at an example that not only demonstrates
the termination problem but is also an additional example of resource sharing.
To present this example, we ll first need to solve the problem of iostream
collision
Thinking in C++ Vol 2 - Practical Programming |
Prev |
Home |
Next |