近期,准备翻译C++ Concurrency in Action 这本书,以窥视C++在线程支持上的特性,希望与大家一起共勉。
以下是本书内容简要
brief contents
1 ■ Hello, world of concurrency in C++! 1
2 ■ Managing threads 15
3 ■ Sharing data between threads 33
4 ■ Synchronizing concurrent operations 67
5 ■ The C++ memory model and operations on atomic types 103
6 ■ Designing lock-based concurrent data structures 148
7 ■ Designing lock-free concurrent data structures 180
8 ■ Designing concurrent code 224
9 ■ Advanced thread management 273
10 ■ Testing and debugging multithreaded applications 300
内容简要
1 ■你好, c++并发世界! 1
2 ■管理线程15
3 ■线程之间共享数据33
4 ■同步并发操作67
5 ■c++内存模型和原子操作类型103
6 ■设计基于锁(lock-based)的并发数据结构148
7 ■设计无锁(lock-free)的并发数据结构180
8 ■设计并发代码224
9 ■高级的线程管理273
10 ■测试和调试多线程应用程序300
Why use concurrency?There are two main reasons to use concurrency in an application: separation of con-cerns and performance。