-
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
-
simple DLL testing procedures for beginners vc DLL help of a friend
简单的动态连接库测试程序,对初学vc动态库的朋友有所帮助-simple DLL testing procedures for beginners vc DLL help of a friend
- 2022-08-13 22:20:06下载
- 积分:1
-
The process of hiding the code. Very easy to use. You can try. Hehe
进程隐藏代码.十分好用.大家可以试试.-The process of hiding the code. Very easy to use. You can try. Hehe
- 2022-11-22 17:40:04下载
- 积分:1
-
在MFC下创建一个进程的例子
在MFC下创建一个进程的例子-MFC in the process of creating an example
- 2022-04-09 07:43:11下载
- 积分:1
-
多
多进程的解决方案 :
创建一个包含四个窗口的多任务模拟:第一个窗口必须显示一系列的递增偶数;第二个窗口必须显示一系列的递增素数;第三个窗口必须显示任意半径的圆;第四个窗口必须显示一系列的随机矩形。-multi-process solution : Create a window contains four multi-task simulation : a window to show a series of incremental even; The second window must show a series of incremental prime; The third window must demonstrate arbitrary radius of the circle; The fourth window must show a series of random Rectangular.
- 2022-06-16 21:29:06下载
- 积分:1
-
多线程序访问数据库
多线程序访问数据库-multi-lane access to the database procedures
- 2022-12-12 15:05:04下载
- 积分:1
-
本实例实现了应用程序的多线程功能,即上下两幅动画分别表示同时运行的线程,是学习多线程编程的好材料...
本实例实现了应用程序的多线程功能,即上下两幅动画分别表示同时运行的线程,是学习多线程编程的好材料-examples of the realization of the application multithreading function, which is next two animation indicated the running threads of study is multi-threaded programming excellent materials
- 2022-03-23 03:44:43下载
- 积分:1
-
大家用APIHook都用个DLL,于是我无聊写了个不用DLL的(多了个DLL黑冰什么的就发现了),其实原理一样的,高手就不要看了,远程线程而已,APIHook的...
大家用APIHook都用个DLL,于是我无聊写了个不用DLL的(多了个DLL黑冰什么的就发现了),其实原理一样的,高手就不要看了,远程线程而已,APIHook的代码Copy aphex的,嘿嘿懒得自己写了。
这个程序能将以_hke_开头的文件和文件夹在任务管理器(我的电脑)里隐藏,刷新下见效果,再次运行取消APIHook,没写注册表和服务,放心测试吧,重启后什么都没变,喜欢的话自己再改改。-U.S. APIHook are using a DLL, so I wrote a silly without DLL
- 2022-02-10 06:10:25下载
- 积分:1
-
Socket线程池,在Unix / Linux编译。
socket+线程池,在unix/linux下编译.-socket threads pool, in unix/linux compiler.
- 2022-08-23 20:54:43下载
- 积分:1
-
定义一个固定大小的线程池,工作函数直接从线程池里获取实现。...
定义一个固定大小的线程池,工作函数直接从线程池里获取实现。-The definition of a fixed-size thread pool, work function, to obtain directly from the thread pool implementation.
- 2022-07-02 08:37:10下载
- 积分:1