文件名称:readerwriter.cpp
- 所属分类:
- Linux/Unix编程
- 资源属性:
- 上传时间:
- 2008-10-13
- 文件大小:
- 5.44kb
- 下载次数:
- 1次
- 提 供 者:
- j*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
读者—写者问题的读写操作限制(包括读者优先和写者优先):
1)写—写互斥,即不能有两个写者同时进行写操作。
2)读—写互斥,即不能同时有一个线程在读,而另一个线程在写。
3)读—读允许,即可以有一个或多个读者在读。
-readers-the problem was the restrictions on reading and writing operations (including readers wrote priority and priority) : 1) write-write mutex, and that is not written there were two parallel write. 2) read-write exclusive, and that is not also a thread reading, and writing in another thread. 3) Reading-time permitting, there may be one or more readers in Reading.
1)写—写互斥,即不能有两个写者同时进行写操作。
2)读—写互斥,即不能同时有一个线程在读,而另一个线程在写。
3)读—读允许,即可以有一个或多个读者在读。
-readers-the problem was the restrictions on reading and writing operations (including readers wrote priority and priority) : 1) write-write mutex, and that is not written there were two parallel write. 2) read-write exclusive, and that is not also a thread reading, and writing in another thread. 3) Reading-time permitting, there may be one or more readers in Reading.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
压缩包 : 5956479readerwriter.cpp.rar 列表