Possible Naive Question About Pipes.

Chris Wheeler cwheeler at norman.nwnet.net
Wed Oct 10 13:21:34 AEST 1990


I am not too familiar with interprocess communication but I am trying to 
develop an X application which consists of multiple display processes and a
poller process.  I have currently developed a single display <-> poller 
application which uses pipes to communicate.  The display's only read from the
pipe and the poller process only writes to the pipe.  My question is:  What is
the best way to implement this?  Can I have one pipe that both display 
processes read from, or do I need multiple pipes(one for each display process)?
I am not sure how the pipes are implemented so I don't know if the single pipe
multiple process pipe is a viable option.  I want the poller to be able to
write to the pipe and all display processes to read that same data.  If this
is possible, how does the writing process know when it can write to the pipe
once more?  Does the reading process pull the data from the pipe?  If this is
so, then my single pipe idea wouldn't work, because I need all display
processes to receive the same data from the pipe.  Does someone have any ideas?

-------------------------------------------------------------------------------
Christopher D. Wheeler                               
Networks and Distributed Computing       INTERNET:  cwheeler at nwnet.net
University of Washington		         :  cwheeler at cac.washington.edu  
3737 Brooklyn Ave. NE                        BELL:  (206) 543-5128         
Seattle, WA  98105                          



More information about the Comp.unix mailing list