News for hackers. Stuff that matters.
Re:Java's Atomic and volatile, under the hood on x86 by mjb on Sunday November 18, 2012 @11:44AM (#4800877)
Right, that's true. Perhaps I oversimplified.

What I was trying to get across is that, in the trivial implementation, visibility and atomicity are required. There are obviously better ways for threads to correctly count in parallel with much better performance - but not ones that Java will automatically recognize based on the obvious implementation of the code.

There are no comments on this comment yet.