Why `volatile` is not thread-safe in C/C++
· One min read
A very common misunderstanding in C and C++ is assuming that the volatile keyword makes code thread-safe.
It does not.....
C++ language concepts, pitfalls, and best practices relevant to systems programming and interviews.
View All TagsA very common misunderstanding in C and C++ is assuming that the volatile keyword makes code thread-safe.
It does not.....