← Practice

Concurrency in C++

This is the wedge. Almost every candidate can define a mutex; very few can say what `memory_order_relaxed` guarantees, why their atomic counter got slower with more threads, or what makes double-checked locking broken before C++11 and fine after it.

Every question here is gated behind Explain Mode. You cannot see the answer until you have written your own and it has passed — because in the interview, the answer you can recognise is worth nothing and the answer you can say out loud is worth everything.

7 questions