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]
|
|
|
| For interprocess communication (IPC), what is the advantages and
di vantages 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
> di vantages of pipe, message queue, and shared memory?
For homework questions (HC), what are the advantages and di vantages
of newsgroups, mailing lists, and books?
| |
|
|
| jmcgill 2006-08-28, 7:00 pm |
| daddy.says@googlemail.com wrote:
> Jack wrote:
>
> For homework questions (HC), what are the advantages and di vantages
> 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.
| |
|
|
daddy.says@googlemail.com wrote:
> Jack wrote:
>
> For homework questions (HC), what are the advantages and di vantages
> 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 di vantages 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
> di vantages of pipe, message queue, and shared memory?
I don't think you can do any better than to study each one. The
advantages and di vantages 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
|
|
|
|
|