文件名称:reader_writer
- 所属分类:
- Linux/Unix编程
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 2kb
- 下载次数:
- 0次
- 提 供 者:
- J*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
读者-写者问题的读写操作限制(包括读者优先和写者优先)
写-写互斥:不能有两个写者同时进行写操作
读-写互斥:不能同时有一个线程在读,而另一个线程在写。
读-读允许:可以有一个或多个读者在读。-Readers- read and write operations to write the problem of constraints (including the readers of priority and writing preferred)
Write- write mutually exclusive: You can not have two writers write the same time
Read- Write mutually exclusive: You can not simultaneously reading a thread while another thread is writing.
Reading- Reading allowed: You can have one or more readers to read.
写-写互斥:不能有两个写者同时进行写操作
读-写互斥:不能同时有一个线程在读,而另一个线程在写。
读-读允许:可以有一个或多个读者在读。-Readers- read and write operations to write the problem of constraints (including the readers of priority and writing preferred)
Write- write mutually exclusive: You can not have two writers write the same time
Read- Write mutually exclusive: You can not simultaneously reading a thread while another thread is writing.
Reading- Reading allowed: You can have one or more readers to read.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
reader_writer.c