public class ThreadDeadlockDetector extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
dumpAllThreadsAndLocks(String msg)
Dump all deadlocks (if any).
|
static void |
dumpAllThreadsAndLocks(String msg,
PrintStream out)
Dump all deadlocks (if any).
|
static void |
init()
Initialize the detector.
|
public static void init()
public static void dumpAllThreadsAndLocks(String msg)
msg - the messagepublic static void dumpAllThreadsAndLocks(String msg, PrintStream out)
msg - the messageout - the outputCopyright © 2022. All rights reserved.