posted 21 years ago
I have a question for locking the entire database lock(-1).
I have my individual record locking code working fine using LockManager[record].wait() and LockManager[record].notifyAll() while
synchronizing on the specific LockManager[record] record.
To lock the entire
database, would it be alright to issue waits on each record, via the LockManager
class array, i.e. LockManager[record].wait(). Then as the records become available,
lock them.
Is there any chance of deadlock??
I've been hashing this over for so long, I'm afraid I can't see the forest for
the trees....
Thanks....