文件名称:productor_consumer
-
所属分类:
- 标签属性:
- 上传时间:2014-02-28
-
文件大小:3.06kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
本程序综合采用V fork 、共享内存、信号量机制实现了2个生产者与2个消费者之间的进程同步。并完成了程序的准确性验证。同时,为了更加准确的测试程序的稳定性,设定了每个生产者和消费者在对缓冲区进行操作前都会等待一段随机的时间,并把缓冲区大小设置得相对较小。最后经过多次测试,程序结果均完全正确.-This procedure using a combination of V fork, shared memory, semaphores mechanism to achieve the process of two producers and two consumers synchronization. And completed to verify the accuracy of the program. Meanwhile, in order to more accurately test the stability of the program, set up in front of producers and consumers in each of the buffer operation will wait a random amount of time, and the buffer size is set to be relatively small. Finally, after several tests, the results of the program were entirely correct.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
productor_consumer/
productor_consumer/consumers.c
productor_consumer/FunctionDetails.c
productor_consumer/ipc.h
productor_consumer/productors.c
productor_consumer/consumers.c
productor_consumer/FunctionDetails.c
productor_consumer/ipc.h
productor_consumer/productors.c
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.