...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. – Cephalopodhttp://stackoverflow.com/questions/3786825/volatile-boolean-vs-atomicboolean
No comments:
Post a Comment