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 Posts
Re: about volatile keyword2004-10-28T19:07:45ZThis is the accepted answer. This is the accepted answer.The 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 126.96.36.199 volatile Fields and What does volatile do? for more information.