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