Java / volatile
volatile keyword.
volatile keyword indicates that a variable's value will be modified by different threads.
When a java variable is declared volatile,
- The value of that varilable will not be cached thread-locally, all read/write will be directed to the "main memory".
- Access to the variable is synchronized on itself.
More Related questions...