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.
Is a volatile int in Java thread-safe? That is, can it be safely read from and written to without locking?
java multithreading thread-safety volatileIs it sufficient to declare an instance of a structure-typed variable as volatile (if its fields are accessed in re-entrant …
c struct volatileWe use volatile in one of our projects to maintain the same copy of variable accessed by different threads. My …
java volatile java-memory-modelMultiple texts say that when implementing double-checked locking in .NET the field you are locking on should have volatile modifier …
c# singleton volatileprivate volatile static Singleton uniqueInstance In a singleton when using double lock method for synchronization why is the single instance …
java singleton volatile thread-synchronization double-checked-lockingSome languages provide a volatile modifier that is described as performing a "read memory barrier" prior to reading the memory …
multithreading volatile memory-barriersCache is controlled by cache hardware transparently to processor, so if we use volatile variables in C program, how is …
c computer-science volatile computer-architecture memorycacheI've looked at the other volatile vs. Atomicxxxx questions in SO (including this one) and have read the description of …
java concurrency atomic volatileclass MyClass { int x, y; void foo() volatile { // do stuff with x // do stuff with y } }; Do I need to …
c++ volatile member-functions