CPP-ConcurrentProgramming-List

CPP Concurrent Programming List

  • 2016-Pthreads入门教程: PthreadsIEEE(电子和电气工程师协会)委员会开发的一组线程接口,负责指定便携式操作系统接口(POSIX). Pthreads中的P表示POSIX,实际上,Pthreads有时候也代表POSIX线程.

  • 2020-《Cpp-Concurrency-in-Action》-2ed: C++11引入了Boost线程库作为标准线程库,作者Anthony Williams为介绍其特性,于2012年出版了C++ Concurrency in Action一书,并顺应C++1720192月出版了第二版。C++ Concurrency in Action 2ed前五章介绍了线程支持库的基本用法,后六章从实践角度介绍了并发编程的设计思想,相比第一版多介绍了一些C++17特性,如std::scoped_lock、std::shared_mutex,并多出一章(第十章)介绍C++17标准库并行算法,此外个人会在相应处补充C++20相关特性,如std::jthread、std::counting_semaphore、std::barrier、std::latch等。阅读本书前可参考Andrew S. TanenbaumModern Operating Systems,预备操作系统的基础知识(进程与线程、死锁、内存管理、文件系统、I/O。此为个人笔记,仅供参考,更详细内容见原书。

  • 2023-C++ Coroutines Part 1: co_yield, co_return and a Prime Sieve: My two blog posts don’t aim to be comprehensive but instead to give a quick tour of the three fundamental mechanisms (the new-in-C++20 coroutine-related operators): co_yield, co_return and co_await. Both blog posts walk through a complete, simple program, somewhat like literate programming.

上一页
下一页