
2 Jul
2009
2 Jul
'09
2:37 p.m.
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