开发者

Wait and Notify

开发者 https://www.devze.com 2023-01-12 22:01 出处:网络
If the main thread qui开发者_高级运维ts before child finishes its work, and child tries to notify, what will happen?

If the main thread qui开发者_高级运维ts before child finishes its work, and child tries to notify, what will happen?

Thanks


If you call notify() on an object that no other thread called wait() on, then the notify call will have no effect.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号