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.

Simplest and understandable example of volatile keyword in Java

I'm reading about volatile keyword in Java and completely understand the theory part of it. But, what I'm searching for …

java multithreading concurrency volatile
Why is a point-to-volatile pointer, like "volatile int * p", useful?

volatile is to tell the compiler not to optimize the reference, so that every read/write does not use the …

c pointers volatile
Why is volatile not considered useful in multithreaded C or C++ programming?

As demonstrated in this answer I recently posted, I seem to be confused about the utility (or lack thereof) of …

c++ c multithreading volatile c++-faq
What is the "volatile" keyword used for?

I read some articles about the volatile keyword but I could not figure out its correct usage. Could you please …

c# java volatile
When to use volatile with multi threading?

If there are two threads accessing a global variable then many tutorials say make the variable volatile to prevent the …

c++ multithreading concurrency atomic volatile
volatile vs. mutable in C++

I have a question about the difference between volatile and mutable. I noticed that both of the two means that …

c++ volatile mutable
Why does volatile exist?

What does the volatile keyword do? In C++ what problem does it solve? In my case, I have never knowingly …

c++ volatile c++-faq
the volatile keyword in C language?

I have a question about volatile in C language. I read some tutorial but still can not figure out, some …

c volatile
When exactly do you use the volatile keyword in Java?

I have read "When to use 'volatile' in Java?" but I'm still confused. How do I know when I should …

java multithreading volatile
Working of __asm__ __volatile__ ("" : : : "memory")

What basically __asm__ __volatile__ () does and what is significance of "memory" for ARM architecture?

c gcc arm embedded-linux volatile