Trần Khánh Ly
New member
How do I write to a shared memory?
Answer
Steps : Use ftok to convert a pathname and a project identifier to a System V IPC key. Use
shmget which allocates a shared memory segment. Use shmat to attache the shared memory segment identified by shmid to the address space of the calling process.
Answer
Steps : Use ftok to convert a pathname and a project identifier to a System V IPC key. Use
shmget which allocates a shared memory segment. Use shmat to attache the shared memory segment identified by shmid to the address space of the calling process.