Java Thread wait() => blocked?

前端 未结 6 672
北荒
北荒 2020-12-28 09:55

According to Java thread state info calling wait() will result a thread to go in BLOCKED state. However this piece of code will result (after being called) in a Thread in WA

6条回答
  •  -上瘾入骨i
    2020-12-28 10:16

    Waiting is when it's not doing anything at all. Blocked is when it's trying to start running again but hasn't been allowed to yet.

提交回复
热议问题