Regular pipe vs. Named Pipe

Bart Smaalders barts@cyber.Eng barts at cyber.Eng.Sun.COM
Thu Jun 13 06:51:04 AEST 1991


The key difference between regular pipes and named pipes is that named pipes
can support communication between unrelated processes.  Since one cannot get
unrelated processes to communicate using regular pipes, it is trivially easy
to construct an example where the statement:

   In fact, a program which does anything with named pipes that couldn't be
   done with pipes is almost certainly going to fail on one of (A) SunOS;
   (B) Ultrix; (C) SVR4.

is false, if we allow the word program to mean programS.  If all that is
desired is communication between related programs, use the pipe call.

Named pipes are a useful way of performing communication between processes.
It fits in well with X programs, since named pipes support select.  This is
in distinct contrast to other SV IPC paradigms.

- Bart Smaalders (barts at Eng.sun.com)



More information about the Comp.unix.internals mailing list