Quantcast
Channel: Volatile Violates its main job? - Stack Overflow
Browsing latest articles
Browse All 4 View Live

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 Article



Answer 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 Article

Answer 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 Article

Volatile 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
Browsing latest articles
Browse All 4 View Live




Latest Images