文件名称:readerwriter
- 所属分类:
- 图形图象
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2016-02-29
- 文件大小:
- 1kb
- 下载次数:
- 0次
- 提 供 者:
- huia8******
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
下载
别用迅雷、360浏览器下载。
如迅雷强制弹出,可右键点击选“另存为”。
失败请重下,重下不扣分。
如迅雷强制弹出,可右键点击选“另存为”。
失败请重下,重下不扣分。
介绍说明--下载内容均来自于网络,请自行研究使用
读者写者问题C++解法,使用互斥信号量,写者线程优先,共有3个读者2个写者-Similar to the barbers problem,the program use semaphore to solve the reader/writer problem.Two semaphores are involved:m_h, h,used as a counter and mutex between 2 writers.Main function create 3 reader thread and 2 writer thread.The writer thread has a higher priority by using SetThreadPriority() function
(系统自动生成,下载前可以参看下载内容)
下载文件列表
reader&writer.cpp
pudn.txt