스폰서
            

shmget() 공유 메모리 생성

int shmget(key_t key, int size, int shmflg);

http://forum.falinux.com/zbxe/index.php?document_srl=423456&mid=C_LIB


shmat() 공유 메모리를 프로세서에 붙이기(연결)

void *shmat(int shmid, const void *shmaddr, int shmflg);

http://forum.falinux.com/zbxe/index.php?document_srl=426100&mid=C_LIB


shmdt() 공유 메모리를 프로세서에서 분리(연결 끊기)

int shmdt(const void *shmaddr);

http://forum.falinux.com/zbxe/index.php?document_srl=426102&mid=C_LIB


shmctl() 공유 메모리 정보 확인/변경/제거

int shmctl(int shmid, int cmd, struct shmid_ds *buf);

http://forum.falinux.com/zbxe/index.php?document_srl=426104&mid=C_LIB






'study > c/c++' 카테고리의 다른 글

디버깅용 콘솔창 띄우기  (0) 2012.03.20
static 함수 / 변수  (0) 2012.02.28
코드 최적화 팁  (0) 2012.02.28


shared memory :: 2013. 8. 16. 13:30 study/c/c++
openclose