In lock manager I used standard lock(), unlock() (wait() until notified if record is booked, etc) with HashMap holding ID-recNo pairs, but as ID i used object returned by Thread.currentThread(). Thus we have no deadlocks (due to dead clients) and increase of performance because there is no need to pass cookie to client. However, both lock and unlock must be called from the same method because only then it is guaranteed that client id wont change. [ June 07, 2004: Message edited by: Denis Spirin ]
I assume you specified a dummy value for the lockCookie parameter when you called the unlock method on the Data class?
Also, did you mentioned this in your design choices doc?
There are multiple versions of each assignment. Probably Denis got a version without lock cookies.
Phil. [ June 08, 2004: Message edited by: Philippe Maquet ]
So it takes a day for light to pass through this glass? So this was yesterday's tiny ad?