Volatile in Java

Here are some infos about volatile in java and what it does.

In a nutshell, volatile is used to ensure variables are not cached in thread specific registers and are thus available for all other threads in the same java process.

Reference:

Advertisements

About yingding wang
i am looking forward to innovation in IT and Robotics

Comments are closed.

%d bloggers like this: