Quantcast
Channel: Visibility of volatile writes in C# - Stack Overflow
Browsing all 2 articles
Browse latest View live

Answer by Malt for Visibility of volatile writes in C#

We need to make a distinction between writes and assignments.Visibility of writes is a property of CPUs, not languages. Specifically, it's a question of Cache Coherence which has two requirements:Write...

View Article



Visibility of volatile writes in C#

According to section 14.5.4 of the C# language spec (ECMA 334, 6th Edition), volatile fields are all about preventing reordering:14.5.4 Volatile fieldsWhen a field_declaration includes a volatile...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images