Volatile (computer programming): Difference between revisions

Content deleted Content added
Bluemoose (talk | contribs)
m Stub-sorting. You can help!
No edit summary
Line 1:
In [[computer programming]], a variable or object declared with the '''volatile''' keyword may be modified externally from the declaring object. For example, a variable that might be concurrently modified by multiple threads (without [[locks]] or a similar form of [[mutual exclusion]]) should be declared volatile. Variables declared to be volatile will not be optimized by the compiler because their value can change at any time.
 
Variables and objects declared as volatile will not be optimized by the compiler because their value can change at any time.
 
{{compu-lang-stub}}