Shachar Shemesh wrote:
Gilad Ben-Yossef wrote:

Pipes are more efficient, but only applies to 1:1 communication
(father to child and similar).

Can you give a brief explanation as to why and by what factor? Didn't
manage to find any simple explanation on the web.

First mentioned in Advanced Programming in the UNIX(R) Envionment by Stevens, pipe operations seems to be faster or equell to any other IPC method (ignoring non synchronized shared memory, of course).

While it should be noted Stevens original recommendation pretains to stream (a.k.a bidirectional) pipes and AFAIK Linux does not actually support stream pipes, as well as basing his claims on measurements on Unix systems other then Linux, I never the less believe that the affarmation that pipes are as fast or faster then any other IPC method (bar non synchronized shared memory) is true.

Which shouldn't surprise anyone, as pipes are actually the first ever Unix IPC 
method, so it have a long time to evolve :-)

Cheers,
Gilad

--
Gilad Ben-Yossef <[EMAIL PROTECTED]>
Codefidence. A name you can trust(tm)
Web: http://codefidence.com  | SIP: [EMAIL PROTECTED]
IL: +972.3.7515563 ext. 201  | Fax:            +972.3.7515503
US: +1.212.2026643 ext. 201  | Cel:           +972.52.8260388

        "[Linux] Kernel maintainers only take you seriously
         if the first word in a message is 'PATCH'."
                -- Avi Kivity.

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to