C++ Concurrency in Action: Practical Multithreading Author: Anthony Williams | Language: English | ISBN:
1933988770 | Format: EPUB
C++ Concurrency in Action: Practical Multithreading Description
Summary
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.
About the TechnologyMultiple 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.
About the BookWithout assuming you have a background in the subject, CC++ 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.
Purchase of the print book comes with an offer of a free PDF, ePub, and Kindle eBook from Manning. Also available is all code from the book.
What's Inside- Written for the new C++11 Standard
- Programming for multiple cores and processors
- Small examples for learning, big examples for practice
====================
Table of ContentsHello, world of concurrency in C++!Managing threadsSharing data between threadsSynchronizing concurrent operationsThe C++ memory model and operations on atomic typesDesigning lock-based concurrent data structuresDesigning lock-free concurrent data structuresDesigning concurrent codeAdvanced thread managementTesting and debugging multithreaded applications- Paperback: 528 pages
- Publisher: Manning Publications; 1 edition (February 28, 2012)
- Language: English
- ISBN-10: 1933988770
- ISBN-13: 978-1933988771
- Product Dimensions: 1.1 x 7.5 x 9.2 inches
- Shipping Weight: 2 pounds (View shipping rates and policies)
"C++ Concurrency In Action: Practical Multithreading" by Anthony Williams is the first book to come out on multithreading and concurrency in the new C++. Williams is currently the primary developer and maintainer of the Boost.Thread library, a writer of many proposals for the C++11 thread library, and has for a while now provided (for a price) its first complete implementation (just::thread).
The Good: at long last C++ is thread-aware and this book shows the reader how to harness this newfound power. Williams starts out by introducing a number of thread-related concepts, like mutexes, condition variables, futures, promises, and atomics. This is an example-based book, so every new topic is fleshed out in code. Having introduced these concepts, the author goes on to apply them by designing lock-based concurrent data structures (a stack, a queue, a lookup table, and a linked list). Williams also shows how to use atomic operations to create lock-free stacks and queues. The book then examines more involved topics like thread pools (for which C++17 will probably have built-in support, though Williams doesn't venture a guess) and is rounded out by a welcome overview of how to identify deadlocks, livelocks, data races, and so on. Given the thematic breakup of the chapters, as well as the wealth of the material collected in the Appendices, this book will come in very handy as a reference. More specifically, Appendix B has a nice comparison of the new C++ multithreading facilities with Java threads, POSIX threads, and the Boost Thread library. Even better is Appendix D, a very useful 120-page reference of the C++11 thread library, which is more usable in digital form (as part of the ebook or the online version of the just::thread documentation).
C++ Concurrency in Action: Practical Multithreading Preview
Link
Please Wait...