共享内存

WINDOWS:

OpenFileMapping     :获取共享内存句柄

CreateFileMapping   :创建共享内存句柄

MapViewOfFile         :获取共享内存空间

UnmapViewOfFile     :释放共享内存空间

LINUX、UNIX:

shmget(OpenFileMapping, CreateFileMapping)

shmat( MapViewOfFile )

shmdt( UnmapViewOfFile )

posted @ 2015-06-09 08:46  知己而已  阅读(235)  评论(0)    收藏  举报