Subj : Re: Deadlock Calculator To : comp.programming.threads From : David Schwartz Date : Fri May 13 2005 07:36 pm "Uenal Mutlu" <520001085531-0001@t-online.de> wrote in message news:d628t5$b7j$04$1@news.t-online.com... > Here's an example showing the difference when recursive locking is used: > DATA: > ObjectList: a b > fRecursiveLocks: 0 > Objects in T0: b a > Objects in T1: b a a b > ANALYSIS: > SelfDeadlock: object 'a' in T1(ix=2) vs. T1(ix=1) > Result: Deadlock! Whew. Good thing we saw the deadlock and caught the bug. > DATA: > ObjectList: a b > fRecursiveLocks: 1 > Objects in T0: b a > Objects in T1: b a a b > ANALYSIS: > Result: No deadlock Oops, now the bug slips into release and can bite customers. DS .