文件名称:29_161625_pc
介绍说明--下载内容均来自于网络,请自行研究使用
生产者与消费者问题算法实现,功能要求:根据进程同步机制,编写一个解决上述问题的可视化程序,可显示缓冲池状态、放数据、取数据等过程。
具体参数:有4个生产者进程,分别为P1、P2、P3和P4;
有4个消费者进程,分别是C1、C2、C3和C4;
缓冲区单元个数N=15;
不同的生产进程可生产不同的产品,自己可任意定义,在本程序中是直接将相应生产者代号放入缓冲区,消费时将某消费者消费某生产者的信息显示出来
-Producers and consumers, the issue of algorithm, the functional requirements: In accordance with the process of synchronization mechanism to resolve these issues to prepare a visual program, displays the buffer pool status, release data, check data process. Specific parameters: There are four producers in the process, namely, P1, P2, P3 and P4 there are four consumer process, namely C1, C2, C3 and C4 buffer cell number N = 15 different production processes can produce different products that they can be defined, in this process is the producer directly to the corresponding code Add buffer, consumption will be a consumer of a producer of information displayed
具体参数:有4个生产者进程,分别为P1、P2、P3和P4;
有4个消费者进程,分别是C1、C2、C3和C4;
缓冲区单元个数N=15;
不同的生产进程可生产不同的产品,自己可任意定义,在本程序中是直接将相应生产者代号放入缓冲区,消费时将某消费者消费某生产者的信息显示出来
-Producers and consumers, the issue of algorithm, the functional requirements: In accordance with the process of synchronization mechanism to resolve these issues to prepare a visual program, displays the buffer pool status, release data, check data process. Specific parameters: There are four producers in the process, namely, P1, P2, P3 and P4 there are four consumer process, namely C1, C2, C3 and C4 buffer cell number N = 15 different production processes can produce different products that they can be defined, in this process is the producer directly to the corresponding code Add buffer, consumption will be a consumer of a producer of information displayed
(系统自动生成,下载前可以参看下载内容)
下载文件列表
29_161625_pc.doc