I believe that you are calling wait()/notify()/notifyAll() on the vector object. Think about it for a second...
Client A locks record 1.
Client B locks record 2.
Client C tries to lock record 1 and waits...
Client D tries to lock record 2 and waits...
Now supose client A unlocks record 1.
if you use notify() instead of notifyAll(), only one waiting thread will be notified. If Client D is notified, for example, it will check and see that record 2 is still locked by another client, and will wait. So Client C, who wanted to get a lock on record 1 will continue to wait indeterminately.
You should better use notifyAll(). What might happen is that many threads will be notified, and most of them will go to sleep back again...
Hope this helps!!!
Benjam�n...
[This message has been edited by Benjam�n Amodio (edited May 09, 2001).]