TIMED_WAITING线程标记为runnable

时间:2013-07-11 13:06:00

标签: java multithreading

我有一个线程转储,其中有:

"http-9443-67" daemon prio=10 tid=0x00007f1d5c37e800 nid=0x10331 runnable [0x00007f1d50da9000]
java.lang.Thread.State: TIMED_WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x000000032e818150> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:196)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2025)
at java.util.concurrent.LinkedBlockingDeque.pollFirst(LinkedBlockingDeque.java:470)
at java.util.concurrent.LinkedBlockingDeque.poll(LinkedBlockingDeque.java:633)
at ...

"http-9443-69" daemon prio=10 tid=0x00007f1d5c8a1000 nid=0x10333 waiting on condition [0x00007f1d511af000]
java.lang.Thread.State: TIMED_WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x0000000326940d48> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:196)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2025)
at java.util.concurrent.LinkedBlockingDeque.pollFirst(LinkedBlockingDeque.java:470)
at java.util.concurrent.LinkedBlockingDeque.poll(LinkedBlockingDeque.java:633)
at ...

在TIMED_WAITING状态下

但是:

  • http-9443-67标记为 runnable
  • http-9443-69标记为等待条件

你知道这意味着什么吗?

1 个答案:

答案 0 :(得分:-1)

线程由于调用wait()而停止执行,并且在调用'notify()'时它将恢复