ThreadDeadlockDetector

Detects deadlocks between threads. Prints out data in the same format as the CTRL-BREAK handler, but includes information about table locks.

Methods
static void dumpAllThreadsAndLocks(String msg)
Dump all deadlocks (if any).
static void dumpAllThreadsAndLocks(String msg)
Dump all deadlocks (if any).
Parameters:
msg - the message
static void dumpAllThreadsAndLocks(String msg, PrintStream out)
Dump all deadlocks (if any).
static void dumpAllThreadsAndLocks(String msg, PrintStream out)
Dump all deadlocks (if any).
Parameters:
msg - the message
out - the output
static void init()
Initialize the detector.
static void init()
Initialize the detector.
void checkForDeadlocks()
Checks if any threads are deadlocked.
void checkForDeadlocks()
Checks if any threads are deadlocked. If any, print the thread dump information.