question on forking & shared memory

Conor P. Cahill cpcahil at virtech.uucp
Sun Nov 25 03:34:13 AEST 1990


In article <308 at srchtec.UUCP> chuck at srchtec.uucp (Chuck Howard) writes:
>
>I'm trying to use multiple processes on a DECstation.  I've been able to 
>fork multiple processes, now I need to have the processes access the same
>memory.  If anyone has used shared memory after forking processes,

The key to this is to create and attach to the shared memory segment
before you fork.  That way all of the processes have the same
shared memory segment attached at the same location without any extra
work for you to do.
-- 
Conor P. Cahill            (703)430-9247        Virtual Technologies, Inc.,
uunet!virtech!cpcahil                           46030 Manekin Plaza, Suite 160
                                                Sterling, VA 22170 



More information about the Comp.unix.questions mailing list