I've got a LockManager interface and plan to have a MultiUserLockManager and a SingleUserLockManager. The managers deal with a Lockable.
Huh? Why two, isn't a lock manager to handle multiple "Threads" from causing deadlocks or other problems. So what is the difference between SingleUserLockManager and MultiUserLockManager.
A LockManager's purpose is to handle locks, and in this case it doesn't care about number of users or threads.
As we have seen in other posts, they lock in local mode, so they would also lock in single user, single
thread, never any possibility of any kind of contention. In all cases there is only one LockManager needed.
Mark