文件名称:1123
- 所属分类:
- Windows编程
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 1.57mb
- 下载次数:
- 0次
- 提 供 者:
- a221****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
创建一个控制进程,此进程包含n个线程。用这n个线程来表示n个读者或写者。每个线程按相应测试数据文件的要求进行读写操作。用信号量机制分别实现读者优先和写者优先问题。运行结果显示要求:要求在每个线程创建、发出读写申请、开始读写操作和结束读写操作时分别显示一行提示信息,以确定所有处理都遵守相应的读写操作限制。
读者-写者问题的读写操作限制-Create a control process, this process contains n threads. Use of these n threads to represent n-reader or writer. Each thread according to the requirements of the corresponding test data file read and write operations. Semaphore mechanism are used to achieve the reader and the writer first priority. Running results show requirements: requires each thread to create, send the application to read and write and began to read and write operations and the end of the read and write operations showed the line of tips to make sure that all deal with the corresponding read and write operations are to comply with restrictions. Readers- read and write operations to write the problem of limited
读者-写者问题的读写操作限制-Create a control process, this process contains n threads. Use of these n threads to represent n-reader or writer. Each thread according to the requirements of the corresponding test data file read and write operations. Semaphore mechanism are used to achieve the reader and the writer first priority. Running results show requirements: requires each thread to create, send the application to read and write and began to read and write operations and the end of the read and write operations showed the line of tips to make sure that all deal with the corresponding read and write operations are to comply with restrictions. Readers- read and write operations to write the problem of limited
(系统自动生成,下载前可以参看下载内容)
下载文件列表
读者写者问题实现\图\Thumbs.db
................\..\写者优先.jpg
................\..\写者优先写者.jpg
................\..\写者优先读者.jpg
................\..\系统总.jpg
................\..\结果1.bmp
................\..\结果2.bmp
................\..\试验结果,读者优先.bmp
................\..\读者优先.jpg
................\..\读者优先写者.jpg
................\..\读者优先读者.jpg
................\源码\Debug\RW.exe
................\....\.....\RW.ilk
................\....\.....\RW.obj
................\....\.....\RW.pch
................\....\.....\RW.pdb
................\....\.....\vc60.idb
................\....\.....\vc60.pdb
................\....\.....\刘庆.txt
................\....\RW.CPP
................\....\RW.DSP
................\....\RW.DSW
................\....\RW.ncb
................\....\RW.OPT
................\....\RW.PLG
................\....\使用说明.txt
................\....\读者写者应用程序.exe
................\....\Debug
................\图
................\源码
读者写者问题实现
................\..\写者优先.jpg
................\..\写者优先写者.jpg
................\..\写者优先读者.jpg
................\..\系统总.jpg
................\..\结果1.bmp
................\..\结果2.bmp
................\..\试验结果,读者优先.bmp
................\..\读者优先.jpg
................\..\读者优先写者.jpg
................\..\读者优先读者.jpg
................\源码\Debug\RW.exe
................\....\.....\RW.ilk
................\....\.....\RW.obj
................\....\.....\RW.pch
................\....\.....\RW.pdb
................\....\.....\vc60.idb
................\....\.....\vc60.pdb
................\....\.....\刘庆.txt
................\....\RW.CPP
................\....\RW.DSP
................\....\RW.DSW
................\....\RW.ncb
................\....\RW.OPT
................\....\RW.PLG
................\....\使用说明.txt
................\....\读者写者应用程序.exe
................\....\Debug
................\图
................\源码
读者写者问题实现