正在加载图片...
UNIX共享内存举例 I System call Description eint shmget(key, size, returns the SM identifier associated with ishmflg): key void*shmat(shmid, attaches the SM segment associated *shmaddr, shmflg); with the shmid to the data segment of the calling process int shmdt(const void detaches from the calling process's shmaddr); data segment the SM segment located at shmaddr int shmctl(shmid, cmd, provides a variety of SM control buf) operations as specified by cmd. 2002-7-12 东北大学软件所于戈 第六章分布式存储管理2002-7-12 东北大学软件所 于戈 第六章 分布式存储管理 4 UNIX共享内存举例 System call Description int shmget(key, size, ishmflg); returns the SM identifier associated with key. void *shmat(shmid, *shmaddr, shmflg); attaches the SM segment associated with the shmid to the data segment of the calling process. int shmdt(const void *shmaddr); detaches from the calling process's data segment the SM segment located at shmaddr. int shmctl(shmid, cmd, *buf) provides a variety of SM control operations as specified by cmd
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有