会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
执着1224
博客园
首页
新随笔
联系
订阅
管理
2019年5月10日
用信号量及其PV操作处理实际问题
摘要: 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 19:19 执着1224
阅读(94)
评论(0)
推荐(0)
编辑
公告