>>>>> "DJD" == Daniel John Debrunner <djd@debrunners.com> writes:
DJD> Thanks. The "Unless ... holding multiple locks.. " part is a little
DJD> troubling. And exactly what is meant by 'Class objects', as while you
DJD> can have a synchronized static method, I don't see how you could have a
DJD> block synchronized in the same way.
You can get the class object of class C by "C.class". Hence, you can
synchronize on the static lock of a class C, this way:
synchronized(C.class) { /* synchronized block */ }
--
Øystein
|