[concurrency-interest] Synchronization of data read by multiple threads

Elias Ross eross at m-Qube.com
Tue Oct 25 15:39:13 EDT 2005


On Tue, 2005-10-25 at 13:31 -0500, Gregg Wonderly wrote:

> It would be very nice to have some tools that would look for variables that are 
> read and written in different methods, in unsynchronized (from the method level 
> down) blocks.  If they could do more global analysis too, that would be great. 
> Then, you could scan your code and look for disparate paths of reading and 
> alteration and then go study them to decide whether there were problems there or 
> not.

The "findbugs" analysis tool does an okay job looking for internal class
inconsistencies.

http://findbugs.sourceforge.net/bugDescriptions.html#IS2_INCONSISTENT_SYNC

Is this what you're talking about?

It will catch most unintentional synchronization mistakes.



More information about the Concurrency-interest mailing list