-
多线程编程终结篇之一 使用WIN32API编写多线程源码
多线程编程终结篇之一 使用WIN32API编写多线程源码-One multi-threaded programming终结篇prepared using Win32API-source multi-threaded
- 2022-01-31 13:47:05下载
- 积分:1
-
MThreadVB 多线程技术,VB也可以多线程。
MThreadVB 多线程技术,VB也可以多线程。-MThreadVB multi-threading technology, VB can also be multi-threaded.
- 2023-02-18 06:35:04下载
- 积分: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
-
program VirtualMemory {$APPTYPE CONSOLE} uses SysUtils, Windows const PageSize =...
program VirtualMemory {$APPTYPE CONSOLE} uses SysUtils, Windows const PageSize = 4096 //定义页面大小 var VmAddress, CommitAddress: Pointer //存放虚拟内存基址 Text: Pchar begin //保留二页虚拟内存 VmAddress := VirtualAlloc(nil, PageSize * 2, MEM_RESERVE, PAGE_READWRITE) if not Assigned(VmAddress) then begin WriteLn( 保留虚拟内存失败! ) ExitProcess(0) end else WriteLn(Format( 保留虚拟内存成功, 基址为:[%8.8x]! , [Longint(VmAddress)])) //提交第二页虚拟内存 CommitAddress := Pointer(Longint(VmAddress) + PageSize) CommitAddress := VirtualAlloc(CommitAddress, PageSize, MEM_COMMIT, PAGE_READWRITE) if not Assigne-program VirtualMemory ($ APPTYPE CONSOLE) uses SysUtils, Windows const PageSize = 4096// definition pages size var VmAddress, CommitAddress : Pointer// virtual memory-based storage site Text : Pchar begin// reservations two virtual memory VmAddress : = VirtualAlloc (nil. PageSize* 2, MEM_RESERVE, PAGE_READWRITE) if not Assigned (VmAddress) then begin WriteLn (reservations virtual memory failure!) ExitProcess (0) end else WriteLn (Format
- 2022-10-06 15:35:03下载
- 积分:1
-
成功 关于线程和进程的程序
成功 关于线程和进程的程序-success on the threads of procedures and processes
- 2022-02-20 06:09:01下载
- 积分:1
-
能控制其它程序的运行。
用VB编写的
能控制其它程序的运行。
用VB编写的-Be able to control other programs 。。。
- 2022-03-24 16:27:08下载
- 积分:1
-
进程控制的意义在于可以创建一个进程,并可以通过进程句柄结束进程。...
进程控制的意义在于可以创建一个进程,并可以通过进程句柄结束进程。-control of the process is to create a process and the process can handle the end of the process.
- 2022-02-13 01:30:08下载
- 积分:1
-
ojective C for Iphone example code.
ojective C for Iphone example code.iphone 开发代码.-ojective C for Iphone example code.
- 2023-04-03 01:30:03下载
- 积分:1
-
信号灯实现多线程控制例子。
信号灯实现多线程控制例子。-signal multi-threaded control examples.
- 2022-03-21 08:25:47下载
- 积分: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