[logback-dev] synchronization style?

Ceki Gulcu ceki at qos.ch
Thu Jul 2 16:37:13 CEST 2009



Ralph Goers wrote:
> I would recommend the second, largely because some of the things that 
> are being synchronized might be able to be converted to constructs that 
> don't require synchronization. Furthermore, as long as you are holding a 
> lock over such a wide scope you run the risk of something being inserted 
> into that synchronized block that does something that raises the 
> possibility of a deadlock.

Agreed.

> I would comment more but my wife is in the hospital for the next few 
> days so I won't have much time until after the weekend.

My best wishes to your wife.

> Ralph
-- 
Ceki Gülcü
Logback: The reliable, generic, fast and flexible logging framework for Java.
http://logback.qos.ch


More information about the logback-dev mailing list