摘要: P187-43 Cemaphore empty=1;橘子精=0;糖=0;水=0; Process product(){ While(true){ P(empty); 产生一个随机数s; If(s==0) V(橘子精); If(s==1) V(水); If(s==2) V(糖); } } Proces 阅读全文
posted @ 2019-05-10 11:07 陈振铭 阅读(170) 评论(0) 推荐(0) 编辑