Skip to content
AtomicReps

Navigation

13/30Computer Science

C++ Concurrency.

Threads in C++: locks, waiting, atomics, the memory model and data races.

  • C++ Concurrency · 1 of 3

    Atomics

    In C++, what does std::atomic<int>::exchange return?

  • C++ Concurrency · 2 of 3

    The thread sanitizer

    Under Apple clang 21.0.0 with -fsanitize=thread and default options, what exit status does a program leave after a data race is reported?

  • C++ Concurrency · 3 of 3

    The memory model

    Which memory orders does the C++ standard allow on a read-modify-write such as exchange or fetch_add?

Three of the 810 C++ Concurrency questions.

Keep going with C++ Concurrency, free
Next topic · 14/30C++ Memory & Lifetime.