文件名称:Producers-and-consumers
介绍说明--下载内容均来自于网络,请自行研究使用
生产者与消费者
设计要求:设计一程序,由一个进程创建三个子进程,三个子进程一个是生产者进程,两个是消费者进程,父子进程都使用父进程创建的共享存储区进行通信,由生产者进程将一个数组中的十个数值发送到由5个缓冲区组成的共享内存中,两个消费者进程轮流接收并输出这十个数值,同时将两个消费者进程读出的数值进行累加求各和。-Producers and consumers
Design requirements: to design a program that creates three sub-process a process, a process that is a producer of three sub-process, two consumer processes, the parent and child use shared memory to communicate with the parent process created by the producer process will an array of ten values are sent to the shared memory buffer consisting of the five, two consumer processes in turn receives and outputs these ten values, while the value of the two consumer process reads out each and seeking to accumulate .
设计要求:设计一程序,由一个进程创建三个子进程,三个子进程一个是生产者进程,两个是消费者进程,父子进程都使用父进程创建的共享存储区进行通信,由生产者进程将一个数组中的十个数值发送到由5个缓冲区组成的共享内存中,两个消费者进程轮流接收并输出这十个数值,同时将两个消费者进程读出的数值进行累加求各和。-Producers and consumers
Design requirements: to design a program that creates three sub-process a process, a process that is a producer of three sub-process, two consumer processes, the parent and child use shared memory to communicate with the parent process created by the producer process will an array of ten values are sent to the shared memory buffer consisting of the five, two consumer processes in turn receives and outputs these ten values, while the value of the two consumer process reads out each and seeking to accumulate .
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Cpp.cpp