5.21每日总结(notify()和 notifyAll()有什么区别?)

notifyAll:唤醒所有wait的线程

notify:只随机唤醒一个 wait 线程

posted @ 2025-06-12 23:47  笠大  阅读(19)  评论(0)    收藏  举报