摘要: 8.1 Introduction monitor能够同步和数据合并,将各种东西封装起来在一个单个的模块 为什么我们需要这玩意儿? mutex.lock(); try { queue.enq(x) } finally { mutex.unlock(); } 这个代码不好。因为 1. 调用者根本不知道是 阅读全文
posted @ 2025-05-29 08:52 映空城 阅读(4) 评论(0) 推荐(0)