stdout

Sun, 18 Mar 2007

JCS Threading

Lately I've been liking findbugs for finding all sorts of dodgy things in java source. I applied it to JCS and it reported a bunch of inconsistent synchronization bugs.

I've filed JCS-21 in the JCS issue tracking system to document my proposed fixes for these. The problem (as I see it) is that if you're accessing data in Java shared between multiple threads, you always need to do it inside the scope of an appropriate synchronized block. This appears to be not as widely known as it should be, although it's documented in a lot of places (Synchronization is not the enemy from the IBM site is a good starting place for reading about it).

[22:13] | [/code] | JCS Threading

< March 2007 >
SuMoTuWeThFrSa
     1 2 3
4 5 6 7 8 910
11121314151617
18192021222324
25262728293031

Contact: Michael Stevens <mstevens@etla.org>

RSS: RSS feed

Atom: Atom feed

Valid XHTML 1.0!

Valid CSS!