The Threading Interface
Table of Contents
1. Overview
TODO: write introduction for “The Threading Interface”.
2. Details
TODO: expand this section.
Table of contents
- Threads
- Creation
- Lifetime
- Arguments
- Sharing Data
- Risks
- Prefer Locks to Mutexes
- Reader-Writer Locks
- Safe Initialization
- Thread-Local Data
- Condition Variables
- Tasks
- std::async
- std::packaged_task
- std::promise and std::future
- The Special Futures of std::async
- Condition Variables versus Tasks for the Synchronization of Threads
- Challenges
- Data Races versus Race Conditions
- Malicious Data Races
- Blocking and Non-Blocking Algorithms (Revisited)