-
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
-
VC multithreaded development program examples can understand multithreaded synch...
VC++多线程开发程序实例,可以了解多线程的同步问题。-VC multithreaded development program examples can understand multithreaded synchronization.
- 2022-05-14 09:16:46下载
- 积分:1
-
一个不错的多线程通讯的例子
一个不错的多线程通讯的例子-a good multi-threaded communication examples
- 2022-02-24 18:40:09下载
- 积分:1
-
LU decomposition of the serial algorithm (for Cache Optimization), LU decomposit...
LU分解的串行算法(进行Cache优化),LU分解的多线程实现并行化。-LU decomposition of the serial algorithm (for Cache Optimization), LU decomposition of multi-threaded parallel.
- 2022-08-23 12:55:14下载
- 积分:1
-
进程间通信的一直方式,采用管道,此处用的是匿名管道,即子进程与父进程间的通信...
进程间通信的一直方式,采用管道,此处用的是匿名管道,即子进程与父进程间的通信-Inter-process communication methods have been used pipe, used here is the anonymous pipe, that is, the child process and parent inter-process communication
- 2022-01-26 05:11:59下载
- 积分:1
-
获取进程模块的信息
获取进程模块的信息-access to the information process module
- 2022-01-31 20:35:58下载
- 积分:1
-
用多线程保存文件。保存同时显示进度条、对话框大小可变
用多线程保存文件。保存同时显示进度条、对话框大小可变-failed to translate
- 2022-07-12 18:20:24下载
- 积分:1
-
JAVA多线程编程
JAVA多线程编程-multi thread program by java
- 2022-03-29 11:02:30下载
- 积分:1
-
得到一个进程的状态,如是否没有反应。
得到一个进程的状态,如是否没有反应。-The status of a process, such as whether or not there was no response.
- 2023-01-31 20:20:03下载
- 积分:1
-
Realize a multi
一个用多线程实现文件查找的例子-Realize a multi-threaded file search example
- 2022-07-16 06:39:59下载
- 积分:1