已阅读5页,还剩3页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
2 试画出下面四条语句的前趋图 S1 a x yS2 b z 1S3 c a bS4 w c 1 图2 2题四条语句的前趋关系 26 试修改下面生产者 消费者问题解法中的错误 Varmutex empty full semaphore 1 n 0 buffer array 0 n 1 ofitem in out integer 0 0 beginparbeginproducer beginrepeat produceranitemnextp wait mutex wait empty wait full wait mutex buffer in nextp in in 1modn signal mutex signal full untilfalse end consumer beginrepeatwait mutex wait full wait empty wait mutex nextc buffer out out out 1 out out 1 modn signal mutex signal empty consumertheiteminnextc untilfalse endparendend Varmutex empty full semaphore 1 n 0 buffer array 0 n 1 ofitem in out integer 0 0 beginparbeginproducer beginrepeat produceranitemnextp wait empty wait mutex buffer in nextp in in 1 modn signal mutex signal full untilfalse end consumer beginrepeatwait full wait mutex nextc buffer out out out 1 modn signal mutex signal empty consumertheiteminnextc untilfalse endparendend
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2024年江苏省盐城市射阳县一级造价工程师《土建计量》深度预测试卷含解析
- DB46T 648-2024尖鳍鲤的规范
- 保险课程设计怎么写
- 按钮调光灯课程设计
- java课程设计超市会员管理系统
- 美容美发公司股东变更合同书(标准版)
- 森林公园生态旅游环境保护与法律法规完善考核试卷
- 压力容器行业的安全文化建设与实践考核试卷
- 道路货物运输与跨境电商平台对接考核试卷
- 货运枢纽站安全技术标准与操作规程考核试卷
- 《临床药物治疗学》期末考试复习题库(含答案)
- 第一单元 项目(二)探究计算机中的数据表示-认识数据编码(一)课件-高中信息技术必修1
- 5.1 延续文化血脉(教案)九年级道德与法治上册(部编版)
- 手术医师能力评价表
- 禾川x3系列伺服说明书
- 图书编写规范
- 田字格信笺纸
- 新人教版pep四年级英语上册Unit2my-schoolbag-A-Lets-Talk课件
- 水罐施工方案
- 建立财务管理中心方案
- 喜迎国庆 国庆节主题班会课件
评论
0/150
提交评论