Creating more than one shared memory by a process
I am not sure whether more than one shared memory can be created by a process
I tried creating three shared memory by a process.
I am using shmget system call to create the shared memory.
The flag parameter what I am using is IPC_CREATE | 0666 for all the three.
I had also tried with IPC_CREATE | 0644
I am getting three different ids for shmget and three different pointers for shmat().But some junk value is coming in the shared memory created.
I doubt that the shared memory created is overlapping.Whether the flag parameter has to be changed.
Please clear my doubt
Last edited by anoopmenons; 11-15-2009 at 09:59 AM.
Reason: tag was not added