Unix Programming - IPC question

This is Interesting: Free IT 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, 1:30 am

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

Thanks.

Jack

daddy.says@googlemail.com

2006-08-28, 7:31 am


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


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

toby

2006-08-28, 1:42 pm


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


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

>
> Thanks.
>
> Jack


jmcgill

2006-08-28, 1:42 pm

daddy.says@googlemail.com wrote:
> Jack wrote:
>
> For homework questions (HC), what are the advantages and disadvantages
> 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:32 pm


daddy.says@googlemail.com wrote:
> Jack wrote:
>
> For homework questions (HC), what are the advantages and disadvantages
> 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 disadvantages of
different IPC mechanisms. So I came herer to ask the experienced
developers.

David Schwartz

2006-08-29, 7:28 am


Jack wrote:

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


I don't think you can do any better than to study each one. The
advantages and disadvantages 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






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com