文件名称:shengchanzheyuxiaofeizhe
- 所属分类:
- Linux/Unix编程
- 资源属性:
- [WORD]
- 上传时间:
- 2012-11-26
- 文件大小:
- 13kb
- 下载次数:
- 0次
- 提 供 者:
- 奋*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
设计目的:通过研究Linux 的进程机制和信号量,实现生产者消费者问题的并发控制.
说明:有界缓冲区内设有20个存储单元,有界缓冲区可用数组实现,缓冲区中的内容自定。
设计要求:(1)每个生产者和消费者对有界缓冲区进行操作后,即时显示有界缓冲区的全部内容,当前指针位置和生产者/消费者进程标识符.(2)生产者和消费者至少各有两个以上.(3)多个生产者或多个消费者之间须有对缓冲区进行共享操作的函数代码(注意互斥与同步).-Design Objective: To study the mechanism and process of Linux semaphores to achieve producer-consumer problem of concurrency control. Descr iption: bounded buffer storage units are equipped with 20, bounded buffer can be used to achieve the array, the contents of the buffer Custom. Design requirements: (1) Each producer and consumer of the bounded buffer operations immediately after the show the entire contents of a bounded buffer, the current pointer position and the producer/consumer process identifier (2) Producer and consumers have at least two or more (3) A number of producers or consumers should have to share operation of the buffer function of the code (note the mutual exclusion and synchronization).
说明:有界缓冲区内设有20个存储单元,有界缓冲区可用数组实现,缓冲区中的内容自定。
设计要求:(1)每个生产者和消费者对有界缓冲区进行操作后,即时显示有界缓冲区的全部内容,当前指针位置和生产者/消费者进程标识符.(2)生产者和消费者至少各有两个以上.(3)多个生产者或多个消费者之间须有对缓冲区进行共享操作的函数代码(注意互斥与同步).-Design Objective: To study the mechanism and process of Linux semaphores to achieve producer-consumer problem of concurrency control. Descr iption: bounded buffer storage units are equipped with 20, bounded buffer can be used to achieve the array, the contents of the buffer Custom. Design requirements: (1) Each producer and consumer of the bounded buffer operations immediately after the show the entire contents of a bounded buffer, the current pointer position and the producer/consumer process identifier (2) Producer and consumers have at least two or more (3) A number of producers or consumers should have to share operation of the buffer function of the code (note the mutual exclusion and synchronization).
(系统自动生成,下载前可以参看下载内容)
下载文件列表
shengchanzheyuxiaofeizhe.doc