摘要: 死锁 死锁的一种产生场景: Producer(item){ p(mutex); p(empty); ... v(full); v(mutex); } Consumer(){ p(mutex); p(full); ... v(empty); v(mutex); } 假设mutex = 1,empty= 阅读全文
posted @ 2021-07-27 14:31 mhp 阅读(66) 评论(0) 推荐(0)