EOSApp

所属分类:操作系统开发
开发工具:Visual C++
文件大小:2KB
下载次数:14
上传日期:2018-01-15 23:12:42
上 传 者Ladidadidada
说明:  1)设计一程序,由一个进程创建三个子进程,三个子进程一个是生产者进程,两个是消费者进程。 2)父子进程都使用父进程创建的共享存储区进行通信,由生产者进程将一个数组中的十个数值发送到由5个缓冲区组成的共享内存中。? 3)两个消费者进程轮流接收并输出这十个数值,同时将两个消费者进程读出的数值进行累加求各和。 4)考虑生产者进程生产的速度和消费者进程速度。
(1) a program is designed to create three sub processes from one process, three sub processes is the producer process, and the two is the consumer process. 2) the father child process communicates with the shared storage area created by the parent process, and sends ten values in one array to the shared memory composed of 5 buffers by the producer process. L 3) the two consumer processes take turns to receive and output the ten values, and add values to each of the two consumer processes. 4) take into account the production speed of the producer process and the speed of the consumer process.)

文件列表:
EOSApp.c (5433, 2017-12-25)

近期下载者

相关文件


收藏者