Chapter 8: Cooperative Synchronization
8.1 Introduction
Synchronization is used to coordinate asynchronous activities, such as threads. Up to this point in the book, synchronization of asynchronous activities has always been on shared resources; this is called competitive synchronization, because the activities are always competing for the shared resource. However, at times activities must synchronize on an event that must occur before all threads can continue; this type of synchronization is called cooperative synchronization. This chapter explains what cooperative synchronization is and why it is important, as well as some of the pitfalls that can occur when implementing it.
The animator presented in Chapter 7 is used to demonstrate visually ...
Get Creating Components now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.