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
|All times are GMT -5. The time now is 03:48 PM.|