On this page
C++ Concurrency (<thread>, <mutex>, <atomic>)
Prev: algorithm_and_ranges | Up: stdlib | Next: io_and_filesystem
Rel: RAII & Destructors, jthread Work Queue Tutorial
Ref: cppreference — Concurrency Support
Tags: #public #prog #cpp #stdlib #concurrency #index
Core (#tier/core)
- std::jthread (C++20) — Auto-joining thread with cooperative cancellation (
std::stop_token). - std::mutex & std::scoped_lock — Mutual exclusion with RAII deadlock-safe locking.
Standard (#tier/standard)
- std::thread — Low-level OS thread handle (must explicitly
join()ordetach()). - std::atomic — Lock-free atomic operations and explicit memory ordering.
Linked from
Related notes
- tuts/cpp/stdlib Linked here; links to this page; shared tags: #cpp, #index, #prog, #stdlib
- tuts/cpp/stdlib/algorithm_and_ranges Linked here; links to this page; shared tags: #cpp, #index, #prog, #stdlib
- tuts/cpp/stdlib/concurrency/atomic Linked here; links to this page; shared tags: #concurrency, #cpp, #prog, #stdlib
- tuts/cpp/stdlib/concurrency/jthread Linked here; links to this page; shared tags: #concurrency, #cpp, #prog, #stdlib
- tuts/cpp/stdlib/concurrency/mutex_and_lock_guard Linked here; links to this page; shared tags: #concurrency, #cpp, #prog, #stdlib
- tuts/cpp/stdlib/concurrency/thread Linked here; links to this page; shared tags: #concurrency, #cpp, #prog, #stdlib
- tuts/cpp/stdlib/io_and_filesystem Linked here; links to this page; shared tags: #cpp, #index, #prog, #stdlib
- tuts/cpp/stdlib/algorithm_and_ranges/ranges_views links to this page; shared tags: #cpp, #prog, #stdlib
- tuts/cpp/tutorials/jthread_work_queue_and_atomics Linked here; shared tags: #concurrency, #cpp, #prog
- tuts/cpp/builtins/raii_and_destructors Linked here; shared tags: #cpp, #prog