[英]Wait and Notify
If the main thread quits before child finishes its work, and child tries to notify, what will happen? 如果在child完成其工作之前主线程退出,并且child试图通知,将会发生什么?
Thanks 谢谢
如果在没有其他线程调用wait()
的对象上调用notify()
,则notify
调用将无效。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.