并发编程,之前甚少接触,也基本上未进行过任何的编程任务。始终是心里的一个痛。于是,痛定思痛,安排今年两个月左右的时间仔细研究一本书籍《C++ Concurrency in Action》。
对于这本书的阅读计划,就是从头到尾进行阅读,这也是作者推荐的阅读方式。由于阅读的书籍是英文版,因此很多笔记可能是英文的梗概摘要。
这本书,总共有如下几章:
Chapter 1 Hello, world of concurrency in C++!(2014年3月30日之前阅读)What is concurrency?Why use concurrency?Concurrency and multithreading in C++Getting startedSummaryChapter 2 Managing threads(2014年4月3日之前阅读)Basic thread managementPassing arguments to a thread functionTransferring ownership of a threadChoosing the number of threads at runtimeIdentifying threadsSummaryChapter 3 Sharing data between threads(2014年4月8日之前阅读)Problems with sharing data between threadsProtecting shared data with mutexesAlternative facilities for protecting shared dataSummaryChapter 4 Synchronizing concurrent operations(2014年4月13日之前阅读)Waiting for an event or other conditionWaiting for one-off events with futuresWaiting with a time limitUsing synchronization of operations to simplify codeSummaryChapter 5 The C++ memory model and operations on atomic types(2014年4月18日之前阅读)Memory model basicsAtomic operations and types in C++Synchronizing operations and enforcing orderingSummaryChapter 6 Designing lock-based concurrent data structures(2014年4月23日之前阅读)What does it mean to design for concurrency?Lock-based concurrent data structuresDesigning more complex lock-based data structuresSummaryChapter 7 Designing lock-free concurrent data structures(2014年4月27日之前阅读)Definitions and consequencesExamples of lock-free data structuresGuidelines for writing lock-free data structuresSummaryChapter 8 Designing concurrent code(2014年5月1日之前阅读)Techniques for dividing work between threadsFactors affecting the performance of concurrent codeDesigning data structures for multithreaded performanceAdditional considerations when designing for concurrencyDesigning concurrent code in practiceSummaryChapter 9 Advanced thread management(2014年5月6日之前阅读)Thread poolsInterrupting threadsSummaryChapter 10 Testing and debugging multithreaded applications(2014年5月10日之前阅读)Types of concurrency-related bugsTechniques for locating concurrency-related bugsSummary 关于这本书,每一章我都会做详细的笔记。接下来的10篇日志就是此书的每章记录。
C++ Concurrency in Action 书籍阅读,布布扣,bubuko.com
C++ Concurrency in Action 书籍阅读
原文:http://blog.csdn.net/ict2014/article/details/22304917