欢迎来到淘码网(TMA.CN)

comsumer

价格: ¥ 9 积分可抵¥ 9

最后更新: 2020-01-03 20:18:52

演示地址:

指导费: 免费

分类
参数1
参数2
参数3
参数4
参数5
参数6
大小
2 MB
发货方式
自动发货
下载方式
远程下载
1
1
1
备注说明

所属分类操作系统开发
开发工具:C/C++
文件大小:2KB
下载次数:0
上传日期:2019-11-04 22:01:13
说明:  创建5个进程,其中两个进程为生产者进程,3个进程为消费者进程。一个生产者进程试图不断地在一个缓冲中写入大写字母,另一个生产者进程试图不断地在缓冲中写入小写字母。3个消费者不断地从缓冲中读取一个字符并输出。为了使得程序的输出易于看到结果,分别在生产者和消费者进程的合适的位置加入一些随机睡眠时间。
(Create five processes, two of which are producer processes and three consumer processes. One producer process tries to keep writing upper case letters in one buffer and another producer process tries to keep writing lower case letters in the buffer. Three consumers constantly read a character from the buffer and output it. In order to make the output of the program easy to see the results, some random sleep times are added to the appropriate positions of the producer and consumer processes respectively.)

文件列表
comsumer.c, 2207 , 2019-10-29

0 (0%)

好评

0 (0%)

中评

0 (0%)

差评

  • 会员中心
  • 浏览记录
  • 我的订单
  • 我的收藏
  • 在线客服

    点击这里给我发消息 点击这里给我发消息

    官方微信

    仅处理投诉、举报及平台使用问题;
    商品问题请咨询商家客服!

  • 意见反馈
  • 返回顶部
浏览记录