摘要: 一、 锁与同步块 第一次作业 共享的对象为controller(包含等待队列的类) (1) DownCase.run方法中完全用synchronized( elevator.controller )锁住了其中全部代码,但其中只访问了controller中的模式,并且是为了判断要不要wait释放锁,所 阅读全文
posted @ 2021-04-24 00:38 贺妍 阅读(84) 评论(0) 推荐(0)