public interface DeadlockCheckerAn interface to implement the deadlock algorithm.
- Pedro Ruivo
deadlockDetectedIt checks for deadlock.
It accepts two arguments: the
pendingOwneris a lock owner that tries to acquire the lock and the
currentOwneris the current lock owner. If a deadlock is detected and the
pendingOwnermust rollback, it must return
true. If no deadlock is found or the
currentOwnermust rollback, it must return
This method may be invoked multiples times and in multiple threads. Thread safe is advised.
pendingOwner- a lock owner that tries to acquire the lock.
currentOwner- the current lock owner.
trueif a deadlock is detected and the