什么事情必须要用到VirtualAlloc?

canyoufeel_it 2010-11-05 04:45:38
什么时候必须要用到4k对齐的内存? 这到底是干什么用的。

换句话说,什么情况下分配内存必须是VirtualAlloc分配的结果,而不能调用GlobalAlloc?

谢谢!!
...全文
143 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
canyoufeel_it 2010-11-08
  • 打赏
  • 举报
回复
自己再顶一下,版主出来帮帮忙啊!
bulerain 2010-11-08
  • 打赏
  • 举报
回复
看看windows核心编程 关于内存管理方面的
virtualalloc通常用于分配大的内存块,可以预定也可以直接申请。但这写申请的内存块会是在页面
canyoufeel_it 2010-11-05
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 lisunlin0 的回复:]
好多时候要4k对齐的~~
[/Quote]

什么时候需要4k对齐呢?

谢谢。
sunlin7 2010-11-05
  • 打赏
  • 举报
回复
好多时候要4k对齐的~~
blpluto 2010-11-05
  • 打赏
  • 举报
回复
The global functions are slower than other memory management functions and do not provide as many features. Therefore, new applications should use the heap functions. However, the global functions are still used with DDE, the clipboard functions, and OLE data objects.

2,640

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 硬件/系统
社区管理员
  • 硬件/系统社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧