Subj : Re: Improving read-write lock To : comp.programming.threads From : Joe Seigh Date : Thu Feb 24 2005 06:32 am On Thu, 24 Feb 2005 16:18:57 +1000, David Holmes wrote: > "Joe Seigh" wrote in message > news:opsmd8w7vwqm36vk@grunion... >> IIRC, Java exceptions don't unlock monitor locks. Of course Java doesn't > use >> dtors for scoping since it has GC. >> > > Java monitor locks are automatically unlocked when an exception propagates > out of a synchronized block or method. I think the C++ folk popularised this > peculiar notion with RAII for locking. :( > So I take it the Java disclaimer that Java should not be used to program safety critical systems still holds. :) -- Joe Seigh .