How do I write in a shared memory?

How do I write in 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.
 

Tìm kiếm

Back
Top