Saturday, November 14, 2015

Volatile accesses are synchronizing

...volatile accesses are synchronizing actions (docs.oracle.com/javase/specs/jls/se7/html/…), as such, they define an order for concurrent events which makes them equivalent to locking on the same monitor. – Cephalopod 
http://stackoverflow.com/questions/3786825/volatile-boolean-vs-atomicboolean

No comments:

Post a Comment