What is the purpose of volatile keyword in C#?
Where would I need to use this keyword?
I saw the following statement, but I am unable to underst
MSDN will summarize better than I....
"The volatile keyword indicates that a field might be modified by multiple threads that are executing at the same time. Fields that are declared volatile are not subject to compiler optimizations that assume access by a single thread. This ensures that the most up-to-date value is present in the field at all times."
http://msdn.microsoft.com/en-us/library/x13ttww7(v=VS.100).aspx