Volatile
This lesson explains the volatile keyword.
We'll cover the following...
Question # 1
Explain the concept of volatile
.
The volatile
concept is specific to Java. Its easier to understand volatile
, if you understand the problem it solves.
If you have a variable say a counter that is being worked on by a thread, it is possible the thread keeps a copy of the counter variable in the CPU cache and ...