Object-Oriented Multithreading Using C++
- 512 stránek
- 18 hodin čtení
This guide offers a comprehensive approach to developing thread-safe object-oriented applications in C++. Drawing on extensive programming experience, the authors present multithreading techniques and principles tailored for objects and class libraries. C++ programmers will learn to create applications that cooperate for system resources rather than compete, avoiding common pitfalls associated with multithreading across UNIX, Windows NT, and OS/2 environments. Major examples are provided for each platform, supported by detailed explanations of object-oriented multithread architecture and incremental multithreading. Included on the disk are all source codes from the book, essential protocols, and a variety of multithreaded components for integration into applications or class libraries. The book covers practical yet often misunderstood topics such as thread-safe container classes, POSIX threads, the new thread standard 1003.1c, STL algorithms and containers in multithreaded contexts, C++ synchronization components, and object-oriented mutexes and semaphores. It also addresses strategies for avoiding deadlock and data races through encapsulation, as well as multithreaded application frameworks and object-oriented pipe streams. For more resources, visit the authors' website.
