码迷,mamicode.com
首页 > 编程语言 > 详细

jconsole线程面板中的阻塞总数和等待总数(转)

时间:2015-04-05 18:41:26      阅读:2747      评论:0      收藏:0      [点我收藏+]

标签:

阻塞总数

Blocked count is the total number of times that the thread blocked to enter or reenter a monitor. I.e. the number of times a thread has been in the java.lang.Thread.State.BLOCKED state.

等待总数

Waited count is the total number of times that the thread waited for notification. i.e. the number of times that a thread has been in the ava.lang.Thread.State.WAITING or java.lang.Thread.State.TIMED_WAITING state.

 

当线程试图获取一个内部的对象锁(不是java.util.concurrent库中的锁),而锁被其它线程占有,则该线程进入阻塞状态。

当线程等待另外一个线程通知调度器的一个条件的时候,它自己进入等待状态。在调用Object.wait()或Thread.join()方法,或者等待java.util.concurrent库中的Lock或Condition时,会出现等待状况

http://blog.csdn.net/mangmang2012/article/details/7106692

http://stackoverflow.com/questions/7170235/what-does-blocked-count-and-waited-count-in-a-java-thread-mean

 

技术分享

 

关于jconsole的线程监控参数blocked Count ,Waited Count

详细概念见 java.lang.management.ThreadInfo
 
 

 

jconsole线程面板中的阻塞总数和等待总数(转)

标签:

原文地址:http://www.cnblogs.com/softidea/p/4394408.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!