Showing posts with label assembly. Show all posts
Showing posts with label assembly. Show all posts

Sunday, March 11, 2012

Why reading a volatile and writing to a field member is not scalable in Java?


Observe the following program written in Java (complete runnable version follows, but the important part of the program is in the snippet a little bit further below):