Top "Volatile" questions

Volatile is a qualifier used to define a data storage area (object, field, variable, parameter) that "can change on its own", thus disallowing some code generator optimizations.

How to cast away the volatile-ness?

How to cast away the volatile-ness? Which c++ style cast should I use?

c++ casting volatile
Volatile guarantees and out-of-order execution

IMPORTANT EDIT I know about the "happens before" in the thread where the two assignments are happening my question is …

java volatile java-memory-model
When to use volatile with shared CUDA Memory

Under what circumstances should you use the volatile keyword with a CUDA kernel's shared memory? I understand that volatile tells …

compiler-construction cuda gpu gpgpu volatile
Volatile and multithreading: is the following thread-safe?

Assume there are two threads running Thread1() and Thread2() respectively. The thread 1 just sets a global flag to tell thread 2 …

c++ multithreading volatile
Why not volatile on System.Double and System.Long?

A question like mine has been asked, but mine is a bit different. The question is, "Why is the volatile …

c# .net multithreading volatile
Java - volatile reference to mutable object - will updates to the object's fields be visible to all threads

... without additional synchronization ? The Tree class below is meant to be accessed by multiple threads (it is a singleton but …

java multithreading volatile java-memory-model
Are mutex lock functions sufficient without volatile?

A coworker and I write software for a variety of platforms running on x86, x64, Itanium, PowerPC, and other 10 year …

c++ multithreading mutex volatile memory-barriers
What is the purpose of a volatile member function in C++?

What is the purpose of a volatile member function in C++?

c++ volatile
Why is the volatile qualifier used through out std::atomic?

From what I've read from Herb Sutter and others you would think that volatile and concurrent programming were completely orthogonal …

c++ c++11 atomic volatile