suprious weakup

线程wait情况下,有可能没有中断,没有唤醒,而返回, 称为spurious wakeup。

 

wait在循环中,通过对condition的判断来决定是否继续wait。

 

概率比较低。

posted @ 2018-09-14 17:12  swaggyC  阅读(168)  评论(0编辑  收藏  举报