Article View: comp.unix.programmer
Article #20Re: Messages between processes (how make it ??)
From: Kari E. Hurtta
Date: Thu, 29 Oct 1992 12:16
Date: Thu, 29 Oct 1992 12:16
23 lines
1358 bytes
1358 bytes
In article <lopi.720292449@dipisa.di.unipi.it> lopi@di.unipi.it (Lopi) wrote: > The main problem is the PID[] array and the PipeMasterID, which are the > process id's, i.e. when i do > > ... > pr = fork(); > if(pr==0) Machine(i); > PID[i++]=pr; > ... > > the fork() duplicates the array > so the child process doesn't know PID[j] for j>i .. > > so if PipeMaster() is `forked` before than the other machines, it doesn't know > the other processes id, if it is forked as last, the other processes cannot signal the 'PACKET_RECEIVED' cause they don't know the PipeMaster id. > > My question is: Is there any easy way to let two processes communicate ? > > Any suggest is accepted... All process knows its parent's pid and parent knows it's children's pid... - K E H
Technical Details
Message-ID:
<KARI.HURTTA.92Oct29141647@plootu.Helsinki.FI>Path:
arc1-ca.pugleaf.net!sparky!uunet!mcsun!news.funet.fi!hydra!klaava!klaava!Kari.HurttaReferences:
<lopi.720292449@dipisa.di.unipi.it>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!news.funet.fi!hydra!klaava!klaava!Kari.Hurtta From: Kari.Hurtta@Helsinki.FI (Kari E. Hurtta) Newsgroups: comp.unix.programmer Subject: Re: Messages between processes (how make it ??) Message-ID: <KARI.HURTTA.92Oct29141647@plootu.Helsinki.FI> Date: 29 Oct 92 12:16:47 GMT References: <lopi.720292449@dipisa.di.unipi.it> Sender: news@klaava.Helsinki.FI (Uutis Ankka) Organization: Department of Computer Science, University of Helsinki, Finland Lines: 23 In-Reply-To: lopi@di.unipi.it's message of 28 Oct 92 17: 14:09 GMT