Я смотрю на дамп потока моего приложения Java и заметил, что иногда вместо того, чтобы показывать "заблокирован", я вижу ключевое слово "исключено", как показано ниже:
"Worker [4]" prio=10 tid=0x00007fb1262d8800 nid=0x89a0 in Object.wait() [0x00007fb15b147000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:503)
at com.myapp.common.util.WaitableQueue.getAll(WaitableQueue.java:152)
- eliminated <0x00000004d0d28e18> (a com.myapp.common.util.balq.SingleQueueQController$_WorkerQueue)
at com.myapp.common.util.balq.SingleQueueQController$_WorkerQueue.getAll(SingleQueueQController.java:3527)
- locked <0x00000004d0d28e18> (a com.myapp.common.util.balq.SingleQueueQController$_WorkerQueue)
at com.myapp.common.util.AbstractWorker.read(AbstractWorker.java:678)
at com.myapp.common.util.AbstractWorker.runBulk(AbstractWorker.java:541)
at com.myapp.common.util.AbstractWorker.run(AbstractWorker.java:343)
Удивительно, но я ничего не могу найти в Google об этом. В чем разница между "заблокированными" и "исключенными" ключевыми словами?