Quantcast
Channel: C# compiler optimization and volatile keyword - Stack Overflow
Browsing latest articles
Browse All 3 View Live

Answer by Brian Gideon for C# compiler optimization and volatile keyword

In the comments you said you were targeting a 32 bit x86 architecture. This is important. Also, my answer is going to assume that are already aware that just because the memory model allows something...

View Article



Answer by Jon Skeet for C# compiler optimization and volatile keyword

So, as far as I understand, the following should never exit.No, it can stop. It just isn't guaranteed to.It doesn't stop on the machine I'm currently running on, for example - but equally I could try...

View Article

C# compiler optimization and volatile keyword

I have read some posts about volatile keyword and behaviour without this keyword.I've especially tested the code from the answer to Illustrating usage of the volatile keyword in C#. When running, I...

View Article
Browsing latest articles
Browse All 3 View Live




Latest Images