Tuesday, October 12, 2010

Volatile

A variable which is declared as volatile will have its up to date value published to all the threads which are accessing it. Reading the volatile variable is less performance intensive as compared to writing to it.
http://www.ibm.com/developerworks/java/library/j-jtp06197.html?wwparam=1284476923

No comments: