Answer by Brian Gideon for Volatile Violates its main job?
The MSDN documentation is wrong. That is most certainly not what volatile does. The C# specification tells you exactly what volatile does and getting a "fresh read" or a "committed write" is not one of...
View ArticleAnswer by Johnv2020 for Volatile Violates its main job?
Another point raised by Joseph Albahari is that process architecture can adversely impact volatile, i.e. AMD in particular can cause values to be swapped. Since you will probably have no idea what...
View ArticleAnswer by Tilak for Volatile Violates its main job?
Well you are right. It is more elaborated in Joseph Albahari threading book/article.The MSDN documentation states that use of the volatile keyword ensures that the most up-to-date value is present in...
View ArticleVolatile Violates its main job?
According to MSDN: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...
View Article
More Pages to Explore .....