文件名称:producer_customer_question
- 所属分类:
- Windows编程
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 251kb
- 下载次数:
- 0次
- 提 供 者:
- moond******
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
通过创建线程实现生产者、消费者对缓冲区进行互斥操作。
用信号量机制解决进程(线程)的同步与互斥问题。
缓冲区大小为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.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
producer_customer_question\P&C new.c
..........................\P&C.cpp
..........................\Producers and customers.c
..........................\Producers&Customers.cpp
..........................\Producers&Customers.exe
producer_customer_question
..........................\P&C.cpp
..........................\Producers and customers.c
..........................\Producers&Customers.cpp
..........................\Producers&Customers.exe
producer_customer_question