在等待之前调用java Notify
当我读到wait()
和notify
方法时,我正在读关于多线程的书。我怀疑如果notify()
方法在wait()
方法之前完成,会发生什么
Wait()
方法将再次等待?或者之前的通知对进一步行动有效
你可以在下面搜索框中键入要查询的问题!
当我读到wait()
和notify
方法时,我正在读关于多线程的书。我怀疑如果notify()
方法在wait()
方法之前完成,会发生什么
Wait()
方法将再次等待?或者之前的通知对进一步行动有效
# 1 楼答案
javadoc for ^{} 说
所以当你打电话的时候
它将等待调用