I have the following situation: I am responsible for a particular
TLCSC of a software system, which will be composed of several (9, actually)
processes. There will be one large SHM area, common to all CSCs, and I
intend to have a SHM area local to my own CSC. There is one process which
controls the others within my CSC, and it is invoked by the highest-level CSC
in the system.
Okay. If the main process of my CSC shmgets the id of the global
area, and semgets a semaphore used within my CSC, and then forks/execs to create
the other processes within my CSC, is it safe for me to place those ids within
the local SHM area? Are these ids the same regardless of which process does
a 'get with a particular key?
Empirically, I've found this to be true, however I can vaguely recall
reading somewhere (I think it was something on the IBMLink network) to the
effect that this is a Bad Thing. Anyone know for sure?
Thanx.
Mitch