C++ Concurrency in Action: Practical Multithreading 1st Edition PDF


C++ Concurrency in Action: Practical Multithreading 1st Edition
Author: Anthony Williams ID: 1933988770

About the Author

Anthony Williams is a UK-based developer and consultant with many years experience in C++. He has been an active member of the BSI C++ Standards Panel since 2001, and is author or coauthor of many of the C++ Standards Committee papers that led up to the inclusion of the thread library in the new C++ Standard, known as C++11 or C++0x. He has been the maintainer of the Boost Thread library since 2006, and is the developer of the just::thread implementation of the C++11 thread library from Just Software Solutions Ltd. Anthony lives in the far west of Cornwall, England.

Paperback: 528 pagesPublisher: Manning Publications; 1 edition (February 28, 2012)Language: EnglishISBN-10: 1933988770ISBN-13: 978-1933988771 Product Dimensions: 7.4 x 1.1 x 9.2 inches Shipping Weight: 2 pounds (View shipping rates and policies) Best Sellers Rank: #58,232 in Books (See Top 100 in Books) #38 in Books > Computers & Technology > Programming > Languages & Tools > C & C++ > C++ #253 in Books > Textbooks > Computer Science > Programming Languages #14768 in Books > Reference
"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).
I am a fairly experienced C++ programmer, who is pretty new to concurrency, aside from the main basic ideas. I picked up this book to expand and deepen my understanding, and to consider using it as a classroom text. Overall, I find the book acceptable, but not impressive.

It is acceptable in that it does contain a *lot* of information, and the author clearly knows what he’s talking about. I’m several chapters in and I feel that I am learning a lot about concurrency…both the issues, and how to address them using C++ 11.0 (and presumably eventually using Boost). So this is good.

Unfortunately he has a rather rambling style that does not engage the reader (or at least me). Although the chapters seem to provide a reasonable global organization for the information, each individual chapter is presented almost as a hodgepodge of ideas and examples with little flow. I find myself saying "is this critically important, or is this a rare exception he’s pointing out for the sake of covering every possibility?"

In places, even individual paragraphs ramble and have a hard time getting to their point. For instance, he explains the rather simple concept of deadlock with a drawn out metaphor about two children wanting to play with a drum, but needing both the drum and the stick…and if one child has both, they can play merrily on their drum while the other looks on….but if one of them finds the drum and the other the stick, then neither can play unless *yawn* somebody gives in or…and it just goes on. I have nothing against metaphor; a Wikipedia site summarized the concept nicely by pointing out (in about two sentences) an old Kansas law that required two trains who meet one another head on to stop and neither may proceed until the other has passed. Nice.

C Concurrency in Action Practical Multithreading 1st 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 C Concurrency in Action Practical Multithreading C Concurrency in Action is a reference and guide to the new C C Concurrency in Action Practical Multithreading Author Anthony Williams Edition Manning C Concurrency in Action Practical Multithreading Anthony Williams C Concurrency in Action gradually enables you to write robust and elegant multithreaded applications in C 11

Download C++ Concurrency in Action: Practical Multithreading 1st Edition PDF

BintangSumantri954

Subscribe to receive free email updates:

0 Response to "C++ Concurrency in Action: Practical Multithreading 1st Edition PDF"

Post a Comment

Note: Only a member of this blog may post a comment.