文件名称:producer_customer_question
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:250.67kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
通过创建线程实现生产者、消费者对缓冲区进行互斥操作。
用信号量机制解决进程(线程)的同步与互斥问题。
缓冲区大小为31,缓冲区满则不允许生产者生产数据,缓冲区空则不允许消费者消费数据。
程序一直运行下去,直到敲击回车停止。-Achieved by creating a thread producers, consumers mutually exclusive operation of the buffer. Settlement process with the semaphore mechanism (thread) synchronization and mutual exclusion issues. Buffer size is 31, the buffer is full, do not allow producers to production data, the buffer space is not allowed consumer spending data. Program has been run down, until hit Enter to stop.
用信号量机制解决进程(线程)的同步与互斥问题。
缓冲区大小为31,缓冲区满则不允许生产者生产数据,缓冲区空则不允许消费者消费数据。
程序一直运行下去,直到敲击回车停止。-Achieved by creating a thread producers, consumers mutually exclusive operation of the buffer. Settlement process with the semaphore mechanism (thread) synchronization and mutual exclusion issues. Buffer size is 31, the buffer is full, do not allow producers to production data, the buffer space is not allowed consumer spending data. Program has been run down, until hit Enter to stop.
相关搜索: 生产者 消费者 问题 c 程序
(系统自动生成,下载前可以参看下载内容)
下载文件列表
producer_customer_question/P&C new.c
producer_customer_question/P&C.cpp
producer_customer_question/Producers and customers.c
producer_customer_question/Producers&Customers.cpp
producer_customer_question/Producers&Customers.exe
producer_customer_question
producer_customer_question/P&C.cpp
producer_customer_question/Producers and customers.c
producer_customer_question/Producers&Customers.cpp
producer_customer_question/Producers&Customers.exe
producer_customer_question
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.