-
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
-
c语言实现生产者消费者问题
c语言实现生产者消费者问题-producer consumer issues
- 2022-03-20 09:39:04下载
- 积分:1
-
多线程下载文件服务器,接收客户端登陆信息,和传递文件
多线程下载文件服务器,接收客户端登陆信息,和传递文件-multi-threaded download the file server, the receiving client landing information, and transmit documents
- 2022-02-20 21:31:57下载
- 积分:1
-
Windows95多线程间同步事件的控制方法
Windows95多线程间同步事件的控制方法-Windows95 multithreaded synchronization between the control methods
- 2022-02-24 23:27:37下载
- 积分:1
-
进程管理子程序,希望大家喜欢
进程管理子程序,希望大家喜欢-process management subroutine hope you like
- 2022-12-24 20:05:03下载
- 积分:1
-
This is another one of the operating system or the process of scheduling algorit...
这是另外一个计关于操作系统 的进程调度的算法 ,也是用c来模拟的,希望大家多指教,-This is another one of the operating system or the process of scheduling algorithm is used to simulate c, we hope more exhibitions,
- 2022-04-17 17:02:40下载
- 积分:1
-
关于线程的代码,很实用,希望大家多多支持,互相学习
关于线程的代码,很实用,希望大家多多支持,互相学习-Code on the thread, very useful, hope that we can support and learn from each other
- 2022-01-25 16:18:42下载
- 积分:1
-
Realize a multi
一个用多线程实现文件查找的例子-Realize a multi-threaded file search example
- 2022-07-16 06:39:59下载
- 积分:1
-
所用程序实现了多个多
本程序利用多线程实现多项任务,并附带说明文挡-the procedures used to achieve a number of multi-threaded tasks, and annotated text block
- 2022-03-19 05:52:56下载
- 积分:1
-
谢谢!我们老师教的例子。GuiThread.有基本的功能
谢谢!我们老师教的例子。GuiThread.有基本的功能-Thank you! We teaches example. GuiThread. A basic function
- 2022-04-19 23:36:55下载
- 积分:1