共享内存
2016-05-14 00:00
253 查看
WINDOWS:
OpenFileMapping :获取共享内存句柄
CreateFileMapping :创建共享内存句柄
MapViewOfFile :获取共享内存空间
UnmapViewOfFile :释放共享内存空间
LINUX、UNIX:
shmget(OpenFileMapping, CreateFileMapping)
shmat( MapViewOfFile )
shmdt( UnmapViewOfFile )
OpenFileMapping :获取共享内存句柄
CreateFileMapping :创建共享内存句柄
MapViewOfFile :获取共享内存空间
UnmapViewOfFile :释放共享内存空间
LINUX、UNIX:
shmget(OpenFileMapping, CreateFileMapping)
shmat( MapViewOfFile )
shmdt( UnmapViewOfFile )
相关文章推荐