There’s now a whole website for this frequently asked question, with links to up-to-date answers for C, C++, Java, and C#:
http://isvolatileusefulwiththreads.com/
Bookmark the site. Tell all your friends who need to know. Friends don’t let friends use volatile for inter-thread communication in C and C++.
Add a Comment
Comments are closed.