|
|
|
|
|
by mjb
4958 days ago
|
|
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. |
|