downdemo/Cpp-Concurrency-in-Action-2ed

C++11/14/17/20 Concurrency Demystified: From Core Principles to Thread-Safe Code

C++

2,187

2 commits

updated Dec 25, 2024

See the code

README

线程支持库

  1. 线程管理(Managing thread):<thread>
  2. 线程间共享数据(Sharing data between thread):<mutex>、<shared_mutex>
  3. 同步并发操作(Synchronizing concurrent operation):<condition_variable>、<semaphore>、<barrier>、<latch>、<future>、<chrono>、<ratio>
  4. C++ 内存模型和基于原子类型的操作(The C++ memory model and operations on atomic type):<atomic>

并发编程实践

  1. 基于锁的并发数据结构的设计(Designing lock-based concurrent data structure)
  2. 无锁并发数据结构的设计(Designing lock-free concurrent data structure)
  3. 并发代码的设计(Designing concurrent code)
  4. 高级线程管理(Advanced thread management)
  5. 并行算法(Parallel algorithm):<execution>
  6. 多线程应用的测试与调试(Testing and debugging multithreaded application)

标准库相关头文件

头文件说明
<thread>、<stop_token>线程
<mutex>、<shared_mutex>锁
<condition_variable>条件变量
<semaphore>信号量
<barrier>、<latch>屏障
<future>异步处理的结果
<chrono>时钟
<ratio>编译期有理数算数
<atomic>原子类型和原子操作
<execution>标准库算法执行策略

并发库对比

C++11 Thread

Boost Thread

POSIX Thread

Java Thread

multithreading
operating-systems

downdemo/Cpp-Concurrency-in-Action-2ed

C++11/14/17/20 Concurrency Demystified: From Core Principles to Thread-Safe Code

C++

2,187

2 commits

updated Dec 25, 2024

See the code

README

线程支持库

  1. 线程管理(Managing thread):<thread>
  2. 线程间共享数据(Sharing data between thread):<mutex>、<shared_mutex>
  3. 同步并发操作(Synchronizing concurrent operation):<condition_variable>、<semaphore>、<barrier>、<latch>、<future>、<chrono>、<ratio>
  4. C++ 内存模型和基于原子类型的操作(The C++ memory model and operations on atomic type):<atomic>

并发编程实践

  1. 基于锁的并发数据结构的设计(Designing lock-based concurrent data structure)
  2. 无锁并发数据结构的设计(Designing lock-free concurrent data structure)
  3. 并发代码的设计(Designing concurrent code)
  4. 高级线程管理(Advanced thread management)
  5. 并行算法(Parallel algorithm):<execution>
  6. 多线程应用的测试与调试(Testing and debugging multithreaded application)

标准库相关头文件

头文件说明
<thread>、<stop_token>线程
<mutex>、<shared_mutex>锁
<condition_variable>条件变量
<semaphore>信号量
<barrier>、<latch>屏障
<future>异步处理的结果
<chrono>时钟
<ratio>编译期有理数算数
<atomic>原子类型和原子操作
<execution>标准库算法执行策略

并发库对比

C++11 Thread

Boost Thread

POSIX Thread

Java Thread

multithreading
operating-systems

Significant stargazers

zirain

142 followers · starred Nov 2022

nauta

59 followers · starred Apr 2022

Yexuan Xiao

112 followers · starred Aug 2022

lokax

26 followers · starred May 2021