fa26-cs759 cs759
Lecture 08: C++ Threads Lecture 08: C++ Threads
Content locked
The catalog is public. Reading this content requires approved access.
Sign in to readLecture 08: C++ Threads
Announcement and recap
Code of the day: modulo a power of two
SIMD and SIMT
Thread versus process
Creating and joining C++ threads
Output calls are not an entire critical section
Case study: 250 images, 10 workers
Why the original loop races
Protect the claim, then process outside the lock
RAII and lock ownership
Scheduling and failure questions
Producer–consumer synchronization
Higher-level concurrency tools
Taskflow: express dependencies as a graph