TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Peter Fitzsimmons
from: Rob Hamerling
date: 1994-07-29 12:00:46
subject: named pipes

PF> Why bother using a multiple instance pipe,  if each pipe is distinct? 

Peter,

I would appreciate an advise on the subject, maybe of more general interest:

I have a situation where multiple threads in one process have to send data
to another process (there is no or hardly data flow back). Would it make
much difference (in complexity and/or performance) to use the queue in the
first or the second process?

Option 1:  

  process A                                   process B   
  =========                                   =========  
  thread A1  --->  named pipe instance 1 ---> thread B1  -\
  thread A2  --->  named pipe instance 2 ---> thread B2  ---\ 
    ...                                                  -----> queue
    ...                                                  ---/ 
  thread An  --->  named pipe instance n ---> thread Bn  -/          


Option 2:

  thread A1  -\            
  thread A2  ---\   
    ...      -----> queue ---> single instance named pipe ---> process B
    ...      ---/         
  thread An  -/            

I am interested in which case I obtain best performance OF PROCESS A (I am
less intersted in the perfomance of process B).
With option 2 process A has both queue and pipe processing. So I expect the
process more resource consuming. But queue processing might be lighter than
multiple-instance pipes. Any idea?

Please consider in your answer that the processes may run on the same or 
different systems. 

Thanks, Rob


--- msgedsq/2 2.2b


* Origin: PC_SquareRoot_of_DOWNSORT, The Netherlands (2:512/4.1098)
SEEN-BY: 12/2442 54/54 620/243 624/50 632/348 640/820 690/660 711/409 413 430
SEEN-BY: 711/807 808 809 934 942 712/353 623 713/888 800/1
@PATH: 1004/1098 512/4 141/209 865 820 3615/50 229/2 12/2442
@PATH: 711/409 54/54 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.