For Programmers: Free Programming Magazines  


Home > Archive > Unix Programming > August 2006 > IPC question









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author IPC question
Jack

2006-08-28, 4:00 am

For interprocess communication (IPC), what is the advantages and
divantages of pipe, message queue, and shared memory?

Thanks.

Jack

daddy.says@googlemail.com

2006-08-28, 4:00 am


Jack wrote:
> For interprocess communication (IPC), what is the advantages and
> divantages of pipe, message queue, and shared memory?


For homework questions (HC), what are the advantages and divantages
of newsgroups, mailing lists, and books?

toby

2006-08-28, 7:00 pm


Jack wrote:
> For interprocess communication (IPC), what is the advantages and
> divantages of pipe, message queue, and shared memory?


http://www.faqs.org/docs/artu/ch07s02.html

>
> Thanks.
>
> Jack


jmcgill

2006-08-28, 7:00 pm

daddy.says@googlemail.com wrote:
> Jack wrote:
>
> For homework questions (HC), what are the advantages and divantages
> of newsgroups, mailing lists, and books?


I remember too many homework questions which simply could never have
been answered with only the information in the textbooks. These
generally required collaboration. In my day, that collaboration
occurred in places like bars and libraries.

Jack

2006-08-28, 7:00 pm


daddy.says@googlemail.com wrote:
> Jack wrote:
>
> For homework questions (HC), what are the advantages and divantages
> of newsgroups, mailing lists, and books?


This is not a homework question. I am trying to learn IPC. However,
from my books, I can not tell the advantages and divantages of
different IPC mechanisms. So I came herer to ask the experienced
developers.

David Schwartz

2006-08-29, 7:59 am


Jack wrote:

> For interprocess communication (IPC), what is the advantages and
> divantages of pipe, message queue, and shared memory?


I don't think you can do any better than to study each one. The
advantages and divantages of each one is that for a given problem,
some models fit better than others. Each of these has a different
model.

A pipe is great if your problem fits a 'continuous stream of bytes'
model. A message queue is great if your problem fits an 'exchange of
short messages' model. Shared memory requires the most complexity to
get right, is potentially the fastest, and works well if your problems
fits a 'manipulate shared structures' model.

DS

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com