[concurrency-interest] New bug pattern, way to common

Thomas Hawtin Thomas.Hawtin at Sun.COM
Fri Mar 14 17:56:07 EDT 2008


Bob Lee wrote:
> Nice one.
> 
> On Fri, Mar 14, 2008 at 12:28 PM, Bill Pugh <pugh at cs.umd.edu 
> <mailto:pugh at cs.umd.edu>> wrote:
> 
>     I identified a new concurrency bug pattern that is way too common:
> 
>     Synchronizing on a field in order to prevent concurrent access to that
>     field.

I think it was Bitter Java that had an example of a read-write lock 
which did the same thing. You'd think that class would take care to get 
it right.

Tom Hawtin


More information about the Concurrency-interest mailing list