文件名称:Producers-and-consumers
-
所属分类:
- 标签属性:
- 上传时间:2015-06-05
-
文件大小:1.2kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
生产者与消费者
设计要求:设计一程序,由一个进程创建三个子进程,三个子进程一个是生产者进程,两个是消费者进程,父子进程都使用父进程创建的共享存储区进行通信,由生产者进程将一个数组中的十个数值发送到由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
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.