wait(),和notify()

两者需要搭配synchronized一起使用,否则会出现并发安全问题
posted @ 2023-02-27 10:36  千里兮兮  阅读(24)  评论(0)    收藏  举报