The ThreadInfo class makes use of these new objects with the introduction of three new methods.
threadinfo类利用了这些新的对象以及引入的三种新方法。
Using the synchronized keyword with myMethod() you will, as expected, see a blocked count greater than zero from the ThreadInfo object associated with the thread.
在 myMethod() 上使用 synchronized 关键字时,会看到与线程关联的 ThreadInfo 对象有一个大于 0 的阻塞计数。
应用推荐