Volatile (computer programming): Difference between revisions

Content deleted Content added
Added stuff to explain how speed varies with use of volatile keyword.
Remove poorly phrased statement that doesn't add much - if anything.
Line 47:
 
With this modification the code will remain as it is and the CPU will detect the change when it occurs.
 
==Speed of the program when volatile is used==
The speed of the program is expected to reduce in most cases. However it very much depends on how volatile feature is implemented in the compiler. So use volatile only when you have multiple execution contexts access the variable or object.
 
==External links==