Run the command shown below to get the Juc profiling result.
运行如下所示的命令来得到结果
When using a JUC lock, a thread will "stop" execution in the following two cases.
当在程序中使用JUC锁的时候,线程会在下面两种情况下“停止”执行。
The result can help users find out the JUC lock contention bottleneck in the program.
这些结果有助于用户发现JUC锁竞争造成的程序瓶颈。
After the "LEGEND" section, the profiling result reports details of each JUC lock contention.
在“LEGEND”段之后,结果给出了每一个JUC锁竞争的详细信息。
Usage of the JUC package is becoming more and more popular as more applications are either developed or fine tuned to run better on multicore systems.
JUC包使用得越来越普遍,因为更多的应用程序需要为了多核系统而开发或仔细地调优。
When a thread a tries to acquire a JUC lock, while this lock has been acquired by another thread, then thread a has to "stop" its execution and wait until this lock is released or times out.
当线程a试图去获得一个JUC锁,但这个锁却已经被另外一个线程获得,那么线程A不得不“停止”,直到这个锁被释放或者超时。
When a thread a tries to acquire a JUC lock, while this lock has been acquired by another thread, then thread a has to "stop" its execution and wait until this lock is released or times out.
当线程a试图去获得一个JUC锁,但这个锁却已经被另外一个线程获得,那么线程A不得不“停止”,直到这个锁被释放或者超时。
应用推荐