-
readers to write source code problem. I included in the Notes. Not joined the pr...
读者写者问题源码.包含我的注释.
没有加入工程文件.
只有一个R&W.cpp.在vc++6.0下编译成功.
在Windows 2000 环境下,创建一个包含n 个线程的控制台进程。用这n 个线程来表示n 个读者或写者。每个线程按相应测试数据文件的要求,进行读写操作。请用信号量机制实现读者-写者问题(读者优先)。
读者-写者问题的读写操作限制:
1)写-写互斥;
2)读-写互斥;
3)读-读允许;
读者优先的附加限制:如果一个读者申请进行读操作时已有另一读者正在进行读操作,则该读者可直接开始读操作。
运行结果显示要求:要求在每个线程创建、发出读写操作申请、开始读写操作和结束读写操作时分别显示一行提示信息,以确信所有处理都遵守相应的读写操作限制。
下面是一个测试数据文件的例子:
1 R 3 5 2 W 4 5 3 R 5 2 4 R 6 5 5W 5 3
-readers to write source code problem. I included in the Notes. Not joined the project documents. Only one R
- 2023-05-26 02:50:03下载
- 积分:1
-
进度条控件的多线程实现程序
进度条控件的多线程实现程序-progress of the control procedures, multithreading
- 2022-07-11 10:11:40下载
- 积分:1
-
多线程程序一起工作,一些线程等待另一个线程…
多线程协同工作过程中一些线程等待另一线程提供资源所以要线程之间要同步进行-multithreaded process to work together some threads awaiting another thread there to provide resources between the threads simultaneously
- 2023-07-12 18:45:03下载
- 积分:1
-
好好
好好-good
- 2022-07-07 01:34:49下载
- 积分:1
-
采用WIN32和DDK实现的W2000的线程池机制.可以预先创建多个线程,维护由系统自动完成....
采用WIN32和DDK实现的W2000的线程池机制.可以预先创建多个线程,维护由系统自动完成.-use WIN32 and DDK the W2000 to achieve the thread pool mechanism. Advance create multiple threads, preserving completed by the system automatically.
- 2022-08-20 07:50:36下载
- 积分:1
-
every 5 minutes to check the current system that process memory used most, and w...
每隔5分钟查看一下当前系统中那个进程占用的内存最大,并写日志文件-every 5 minutes to check the current system that process memory used most, and write log files
- 2022-02-12 23:33:43下载
- 积分:1
-
极值问题.rar,7KB
极值问题.rar,7KB-extreme problems. Rar, 7 kB
- 2022-02-15 19:41:52下载
- 积分:1
-
在多个进程间共享使用一个结构数据
在多个进程间共享使用一个结构数据- Shares in during many advancements uses a structure data
- 2022-08-11 08:36:32下载
- 积分:1
-
共享DLL中的变量,可以让多个程序共用一个程序.
共享DLL中的变量,可以让多个程序共用一个程序.-shared DLL variables, which allows multiple processes to share a procedure.
- 2022-04-07 12:08:48下载
- 积分:1
-
a good linux environment Driver Development debugging tool
一个很好的linux环境下驱动开发的调试工具-a good linux environment Driver Development debugging tool
- 2023-02-21 04:15:03下载
- 积分:1