文件名称:readerwriter.cpp
-
所属分类:
- 标签属性:
- 上传时间:2008-10-13
-
文件大小:5.44kb
-
已下载:1次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
读者—写者问题的读写操作限制(包括读者优先和写者优先):
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.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
1999-2046 搜珍网 All Rights Reserved.
本站作为网络服务提供者,仅为网络服务对象提供信息存储空间,仅对用户上载内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。
