COMS W4995 C++ Deep Dive for C Programmers

Concurrency

Lecture outline

pthread.cpp

  1. Using std::chrono to measure performance

  2. C pthread API

  3. False sharing & cache-conscious programming

  4. Mutual Exclusion

concur.cpp

  1. C++ threads: std::thread and std::mutex

  2. RAII for threads: std::jthread and std::scoped_lock

cond-var.cpp

  1. Condition variable