NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
This topic has been locked.
1 reply Latest Post - 2004-10-28T19:07:45Z by SystemAdmin
Pinned topic about volatile keyword
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Can someone please explain the function of the volatile keyword. Thank you.
Updated on 2004-10-28T19:07:45Z at 2004-10-28T19:07:45Z by SystemAdmin
SystemAdmin 110000D4XK2768 PostsACCEPTED ANSWER
Re: about volatile keyword2004-10-28T19:07:45Z in response to SystemAdminThe volatile keyword is most typically used to ensure that threads have the most current value of the variable. Threads may make copies of instance variables; volatile makes certain the value is the same in all threads. See 188.8.131.52 volatile Fields and What does volatile do? for more information.