-
信号量实现临界区访问
信号量实现临界区访问-signal to achieve critical visit
- 2022-09-01 09:25:03下载
- 积分:1
-
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
-
This procedure is the operating system, curriculum design, the process of schedu...
本程序是操作系统课程设计,进程调度演示源程序,在windows下模拟进程的调度.-This procedure is the operating system, curriculum design, the process of scheduling demo source code, under the simulation process in the windows scheduler.
- 2022-05-23 15:10:08下载
- 积分:1
-
当前比较流行的线程生产者和消费者模型,主要采用了信号灯机制。在vc6编译...
当前比较流行的线程生产者和消费者模型,主要采用了信号灯机制。在vc6编译-current more popular threads model of producers and consumers, mainly in the signal mechanism. The compiler vc6
- 2022-10-09 05:10:02下载
- 积分:1
-
Post trough technology used in the communication process between the routines. A...
利用邮槽技术,在进程间进行通信的例程。希望和大家交流。-Post trough technology used in the communication process between the routines. And we hope that the exchanges.
- 2022-03-21 22:34:53下载
- 积分:1
-
基于三级反馈队列调度算法的UNIX进程管理程序模拟
基于三级反馈队列调度算法的UNIX进程管理程序模拟-Feedback queue scheduling algorithm based on three of the UNIX process management program to simulate
- 2023-06-02 13:15:02下载
- 积分:1
-
共享内存多进程通讯例子
共享内存多进程通讯例子-the demo of shared memory multi-process communication
- 2022-02-04 23:47:25下载
- 积分:1
-
用线程实现动态改变图标
用线程实现动态改变图标-using threads to implement dynamic changes icon
- 2022-08-12 22:56:27下载
- 积分:1
-
该程序的作用是通过未公开函数在RING3下获得指定线程的入口地址,根据此地址可知道这个线程是由哪个模块创建的。...
该程序的作用是通过未公开函数在RING3下获得指定线程的入口地址,根据此地址可知道这个线程是由哪个模块创建的。-The role of the program is not open function in RING3 thread under the entrance of the designated address, in accordance with this address may be aware of this thread which module created.
- 2023-01-30 20:15:03下载
- 积分:1
-
在VC++ 6.0下利用共享内存、消息实现内部进程通讯
在VC++ 6.0下利用共享内存、消息实现内部进程通讯-in VC 6.0 using shared memory, message achieving internal communications process
- 2022-05-21 02:14:54下载
- 积分:1