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.....
Multithreading, synchronization, race conditions, and concurrency-related programming concepts.
View All TagsA very common misunderstanding in C and C++ is assuming that the volatile keyword makes code thread-safe.
It does not.....