C++ Concurrency in Action
C++ Concurrency in Action is a reference and guide to the new C++ 11 Standard for experienced C++ programmers as well as those who have never written multithreaded code. This book will show you how to write robust multithreaded applications in C++ while avoiding many common pitfalls.
Multiple processors with multiple cores are the norm these days. The C++11 version of the C++ language offers beefed-up support for multithreaded applications, and requires that you master the principles, techniques, and new language features of concurrency to stay ahead of the curve.
Without assuming you have a background in the subject, C++ Concurrency in Action gradually enables you to write robust and elegant multithreaded applications in C++11. You’ll explore the threading memory model, the new multithreading support library, and basic thread launching and synchronization facilities. Along the way, you’ll learn how to navigate the trickier bits of programming for concurrency.
Written for C++ programmers who are new to concurrency and others who may have written multithreaded code using other languages, APIs, or platforms.
- Written for the new C++11 Standard
- Programming for multiple cores and processors
- Small examples for learning, big examples for practice
Table of Contents
Chapter 1. Hello, world of concurrency in C++!
Chapter 2. Managing threads
Chapter 3. Sharing data between threads
Chapter 4. Synchronizing concurrent operations
Chapter 5. The C++ memory model and operations on atomic types
Chapter 6. Designing lock-based concurrent data structures
Chapter 7. Designing lock-free concurrent data structures
Chapter 8. Designing concurrent code
Chapter 9. Advanced thread management
Chapter 10. Testing and debugging multithreaded applications
Appendix A. Brief reference for some C++11 language features
Appendix B. Brief comparison of concurrency libraries
Appendix C. A message-passing framework and complete ATM example
Appendix D. C++ Thread Library reference
- Paperback: 528 pages
- Publisher: Manning Publications (February 2012)
- Language: English
- ISBN-10: 1933988770
- ISBN-13: 978-1933988771