文件名称:caozuoxitong
介绍说明--下载内容均来自于网络,请自行研究使用
程序实现了两个生产者和两个消费者的生产者消费者问题(当生产者消费者数目再多时加上几个子进程就可以了)为了防止程序陷入死循环,给生产者限定了生产次数,同时为了方便截图,将次数限定的比较少。下面是我的程序:-Program has achieved two producers and two consumers and producers of consumer issues (when the number of producers and consumers to add a few more when the child process can be a) In order to prevent the program into a loop, giving the number of producers to limit the production at the same time in order to facilitate the shots, the number of qualified relatively small. Here is my program:
(系统自动生成,下载前可以参看下载内容)
下载文件列表
生产者消费者实验.doc