| Williams A. - CPP Concurrency in Action - 2012.epub | 6.59 MB | ||
| Williams A. - CPP Concurrency in Action - 2012.pdf | 6.19 MB |
Книги и журналы » Компьютерная литература » Программирование (книги)
C++ Concurrency in Action
Год: 2012
Автор: Anthony Williams
Жанр: Программирование
Издательство: Manning Publications Co
ISBN: 9781933988771
Язык: Английский
Формат: PDF + EPUB
Качество: Изначально компьютерное (eBook)
Интерактивное оглавление: Да
Количество страниц: 530
Описание: 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.
What’s inside:
Written for the new C++11 Standard
Programming for multiple cores and processors
Small examples for learning, big examples for practice
[spoiler="Примеры страниц"]
![]()
[/spoiler]
[spoiler="Оглавление"]
preface
acknowledgments
about this book
about the cover illustration
Chapter 1 Hello, world of concurrency in C++!
What is concurrency?
Why use concurrency?
Concurrency and multithreading in C++
Getting started
Summary
Chapter 2 Managing threads
Basic thread management
Passing arguments to a thread function
Transferring ownership of a thread
Choosing the number of threads at runtime
Identifying threads
Summary
Chapter 3 Sharing data between threads
Problems with sharing data between threads
Protecting shared data with mutexes
Alternative facilities for protecting shared data
Summary
Chapter 4 Synchronizing concurrent operations
Waiting for an event or other condition
Waiting for one-off events with futures
Waiting with a time limit
Using synchronization of operations to simplify code
Summary
Chapter 5 The C++ memory model and operations on atomic types
Memory model basics
Atomic operations and types in C++
Synchronizing operations and enforcing ordering
Summary
Chapter 6 Designing lock-based concurrent data structures
What does it mean to design for concurrency?
Lock-based concurrent data structures
Designing more complex lock-based data structures
Summary
Chapter 7 Designing lock-free concurrent data structures
Definitions and consequences
Examples of lock-free data structures
Guidelines for writing lock-free data structures
Summary
Chapter 8 Designing concurrent code
Techniques for dividing work between threads
Factors affecting the performance of concurrent code
Designing data structures for multithreaded performance
Additional considerations when designing for concurrency
Designing concurrent code in practice
Summary
Chapter 9 Advanced thread management
Thread pools
Interrupting threads
Summary
Chapter 10 Testing and debugging multithreaded applications
Types of concurrency-related bugs
Techniques for locating concurrency-related bugs
Summary
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
resources
index
[/spoiler]
Доп. информация: Who should read this book
If you’re writing multithreaded code in C++, you should read this book. If you’re using the new multithreading facilities from the C++ Standard Library, this book is an essential guide. If you’re using alternative thread libraries, the guidelines and techniques from the later chapters should still prove useful.
A good working knowledge of C++ is assumed, though familiarity with the new language features is not—these are covered in appendix A. Prior knowledge or experience of multithreaded programming is not assumed, though it may be useful.
| torrent name | size | uploader | age | seed | leech |
|---|---|---|---|---|---|
|
American Slavery: A Very Short Introduction - Heather Andrea Williams Posted by
a900 in Books
> Non-Fiction
|
1.22 GB | a900 | 1 month | 1 | 4 |
|
American Slavery: A Very Short Introduction - Heather Andrea Williams Posted by
daenigma100 in Books
> Non-Fiction
|
112.97 MB | daenigma100 | 1 month | 1 | 1 |
| 487.11 MB | a900 | 3 months | 0 | 0 | |
| 239.36 MB | [email protected] | 3 months | 4 | 1 | |
| 352.1 MB | Ants261 | 4 months | 7 | 1 |
All Comments