Is there a memory mapping api on windows platform, just like mmap() on linux?
Is there an api to do memory mapping, just l开发者_运维技巧ike
mmap()
on linux?
Depends on what exactly you want to use it for. If you want to map existing files into memory, that's supported with memory-mapped files. They can also be used to share memory between processes (use named mapping object with no underlying file). If you want to map physical memory, that's generally not supported from user mode, although there are some tricks.
精彩评论