-
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
-
枚举系统当前进程源代码,可用于判断某个进程是否开始或者结束。...
枚举系统当前进程源代码,可用于判断某个进程是否开始或者结束。-current process enumeration system source code can be used to judge whether a particular process or ended.
- 2022-07-14 14:39:25下载
- 积分:1
-
incident kernel object, the key code of (critical) explanations, and the multi
事件内核对象、关键代码段(临界区)的讲解,以及在多线程同步中的应用。在Windows下编写基于消息的网络应用程序,掌握阻塞与非阻塞网络程序的编写,理解在Windows平台下,采用异步选择机制可以提高网络应用程序的性能。-incident kernel object, the key code of (critical) explanations, and the multi-thread synchronization application. In the preparation of Windows-based news network applications, master obstruction and nonobstructive network program, understanding of the Windows platform, using asynchronous selection mechanism can improve network application performance.
- 2022-11-24 04:00:03下载
- 积分:1
-
A very beautiful battery appearance monitor, it keeps the current battery appear...
一款非常漂亮的电池状态监视器,它以动态图形方式非常直观的显示出当前的电池状态。其中还包含了怎样在VB中显示PNG图片,并实现PNG图片的缩放等,是一款学习的好代码,不要错失机会哟-A very beautiful battery appearance monitor, it keeps the current battery appearance of the display of view very much by dynamic state sketch.Still included among them how show a PNG picture in the VB, and carry out zoom of PNG picture etc., is the good code of a study, don t blunder away an opportunity!!!
- 2022-12-17 13:50:02下载
- 积分:1
-
multithreading technology and the VC Serial Communication Program application. P...
多线程技术及其在VC++串口通信程序中的应用.pdf -multithreading technology and the VC Serial Communication Program application. Pdf multithreading technology and the VC Serial Communication Program application. pdf
- 2022-05-05 10:07:48下载
- 积分:1
-
本程序的功能是获取本机上正在运行的所有的进程,并可以对这些获取的进程进行终止操作。...
本程序的功能是获取本机上正在运行的所有的进程,并可以对这些获取的进程进行终止操作。-this procedure is to obtain the functions of the machine is running on all the processes, and can be obtained for these processes to terminate operations.
- 2023-03-30 20:35:04下载
- 积分:1
-
readers of this program
本程序实现读者-写者问题.采用WINDOWS API实现.有比较详细的程序说明-readers of this program- writing problem. Using Windows API. A more detailed description of the procedures
- 2022-10-13 07:10:03下载
- 积分:1
-
进程枚举
类似于任务管理器中的任务列表
可以列举出系统运行的进程
进程枚举
类似于任务管理器中的任务列表
可以列举出系统运行的进程-Enumeration process is similar to Task Manager task list can be listed out in the process of system operation
- 2022-05-16 23:10:28下载
- 积分:1
-
一个关于VB对CPU的编程原代码.实时显示CPU占用率.
一个关于VB对CPU的编程原代码.实时显示CPU占用率.-a right on the CPU VB programming source code. Real-time CPU utilization.
- 2022-05-20 19:40:24下载
- 积分:1
-
win2000驱动程序设计,里面涉及所有的有关win2000的驱动程序,资历比较深的windows程序设计者可以参考一下。 对不起刚才上传的哪一个忘了加上源代码...
win2000驱动程序设计,里面涉及所有的有关win2000的驱动程序,资历比较深的windows程序设计者可以参考一下。 对不起刚才上传的哪一个忘了加上源代码了!-WIN2000 driver design, they involve all relevant WIN2000 of the driver, is relatively deep windows designers procedures for reference. Sorry which have uploaded a forgotten with the source code!
- 2022-04-23 14:00:10下载
- 积分:1