-
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
-
Based on VC++
一个基于VC++的多线程编程的实例,可以直接运行,-Based on VC++
- 2022-03-11 10:58:29下载
- 积分:1
-
多线程编程终结篇之一 使用WIN32API编写多线程源码
多线程编程终结篇之一 使用WIN32API编写多线程源码-One multi-threaded programming终结篇prepared using Win32API-source multi-threaded
- 2022-01-31 13:47:05下载
- 积分:1
-
介绍多
多线程编程的入门指导
图书语言: 简体中文
图书类型: 程序设计 >> 程序基础下载
授权方式: 免费程序基础图书
图书大小: 765 KB
-Introduction to multi-threaded programming guide books Language: Simplified Chinese Book Type: Program Design
- 2022-11-18 16:25:03下载
- 积分:1
-
进程枚举、包括PID,路径,以及杀死指定进程。
进程枚举、包括PID,路径,以及杀死指定进程。 -process of enumeration, including PID, path, and kill the designation process.
- 2023-08-04 11:20:03下载
- 积分:1
-
本原代码是基于C语言的原程序。是经典中的小游戏。
本原代码是基于C语言的原程序。是经典中的小游戏。-primitive code is based on the C language of the original procedure. Classic is a small game.
- 2022-01-28 04:06:12下载
- 积分:1
-
成功 关于线程和进程的程序
成功 关于线程和进程的程序-success on the threads of procedures and processes
- 2022-02-20 06:09:01下载
- 积分:1
-
线程的例子:读写文件,递归过程的创建…
线程示例:读写文件、递归创建线程进程、快速排序-thread Example : reading and writing documents, recursive process of creating threads, Quick Sort
- 2022-04-18 22:51:31下载
- 积分:1
-
This example describes the synchronization between multiple threads and run to a...
本例介绍了多线程之间的同步和运行,实现两个小球交替运动-This example describes the synchronization between multiple threads and run to achieve two ball alternating movement
- 2023-06-22 14:05:05下载
- 积分:1
-
multiple thread演示,virtual系统的multiple thread,有助于教学用途
multiple thread演示,virtual系统的multiple thread,有助于教学用途-multiple thread demonstration of multiple virtual thread, and the teaching purposes
- 2022-08-22 08:34:26下载
- 积分:1