简体   繁体   中英

What are the difference between the thread dumps

What are the difference between the thread dumps taken by ctrl+break and java program?
I am using the below snippet to get thread dump

Map st = Thread.getAllStackTraces();

Thread.getAllStackTraces does not include information about thread statuses or locks they hold or locks they waiting for. You'll need to get this info from elsewhere (there's ThreadMXBean for this).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM