A
thought on the performance issue.
You
could copy the hash map, and then do the detection. If you detect a
deadlock, then synchronize the entire map and run it again. This way you
only force a lock on the whole map when you really think there is a
deadlock.
-dain
-Original
Good thought. Doesn't this make things really
slow? Maybe a clone isn't so expensive.
- Original Message -
From:
Dain
Sundstrom
To: 'Bill
Burke' ; [EMAIL PROTECTED]
Sent: Saturday, January 12, 2002 4:12
PM
Subject: RE: [JBoss-dev] need help with
deadlock
thought. Doesn't this make things really slow? Maybe a clone isn't so
expensive.
- Original Message -
From: Dain Sundstrom
To: 'Bill Burke' ; [EMAIL PROTECTED]
Sent: Saturday, January 12, 2002 4:12 PM
Subject: RE: [JBoss-dev] need help with deadlock detection
A thought