线程在等待条件时被中断

时间:2016-04-22 03:20:05

标签: java

当我调用Condition对象的await方法时,我得到一个InterruptedException

Caused by: java.lang.InterruptedException
        at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.reportInterruptAfterWait(AbstractQueuedSynchronizer.java:2017)
        at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2052)

0 个答案:

没有答案