1,使用JVisualVM时,打开Threads监控,我们可以发现Java的线程状态有以下几种: 2,JVM线程状态: NEW, RUNNABLE, BLOCKED, WAITING, TIMED_WAITING, TERMINATED BLOCKED是等待获得对象锁 WAITING是调用了wait, sleep, park wait, 进入TIMED_WAITING状态,出让锁,并进入对象的等待队列 sleep, 进入TIMED_WAITING状态,不出让锁 park, 进入WAITING状态…