简述 wait()和notify()方法的作用。
(1)wait()方法导致当前的线程等待。(2)当其他线程调用某线程的notify()方法时,唤醒该线程。
扫描二维码免费使用微信小程序搜题/刷题/查看解析。
版权声明:本文由翰林刷题小程序授权发布,如需转载请注明出处。
本文链接:https://doc.20230611.cn/post/436748.html
上一篇:使用调解方法解决国际商务争端时,下列说法不正确的是()
下一篇:Translation.Translate the following sentences into Chinese.5. Challenge size-bigotry and fight size discrimination whenever you can. Don’t speak of yourself or others with phrases like “fat slob,” “pig out,” or “thunder thighs.”