Is there a way to use one shared memory,
shmid = shmget (shmkey, 2*sizeof(int), 0644 | IPC_CREAT);
For two variables with different values?
int *a, *b;
a = (int *) shmat (shmid, NULL, 0);
b = (int *) shmat (shmid, NULL, 0); // use the same block of shared memory ??
Thank you very much!