[concurrency-interest] dealing with people that questionvisibility problems

David Holmes dcholmes at optusnet.com.au
Thu Feb 22 00:08:19 EST 2007


> I've been greeted with numerous bugs to solve related to
> visibilty.  ... I don't recall ever having any
> atomicity bugs.

You're right. Considering legacy code, the biggest visibility mistake people
make is having a non-synchronized accessor but all the mutators are
correctly synchronized. Hence atomicity is preserved but suddenly you get
stale reads that lead to unexpected behaviour.


More information about the Concurrency-interest mailing list