Re: IPC mechanisms under Linux



Lew Pitcher <lpitcher@xxxxxxxxxxxx> writes:
On Sep 24, 7:28 am, Wellu <kuumaliimam...@xxxxxxxxx> wrote:
Hi all,

I'm trying to develop a system for Linux platform that consists of
several different parts. Firts of all there would be Engine part that
listens for incoming messages or events.
[snip]
There can be several modules (e.g hundreds) running at the
same time so everything is asynchronous.

At the same time Engine can
get new messages from upper levels using some IPC mechanism.
[snip]
So, all in all
Engine must listen to events from Modules and from upper levels.

Engine and Modules run in the same machine and programming language
would be C.

There are many IPC mechanisms that might satisfy your problem.

[...]

- DBUS

This is not 'an IPC mechanism'. It is a library and a daemon process
used to implement a distributed object model based on some
(unspecified) IPC mechanism. And it is geared towards a specific
purpose:

* Communication between desktop applications in the same desktop
session; to allow integration of the desktop session as a whole,
and address issues of process lifecycle (when do desktop
components start and stop running).

* Communication between the desktop session and the operating
system, where the operating system would typically include the
kernel and any system daemons or processes.

<URL:http://dbus.freedesktop.org/doc/dbus-tutorial.html>

It suffers from the same basic drawback as its older predecessor, RPC:
Why glue the implementations of different entities together to such a
degree instead of just defining protocol and sending message
'something' will eventually receive and deal 'somehow' with it?

Its usual purpose is to solve the two social problems 'someone would
need to write the IPC code' (instead of something different) and 'that
someone will need to know what to use how to accomplish this purpose'
(instead of 'designing' a GUI interface).
.



Relevant Pages

  • Re: Attn Panhead geeks: What the heck is that screw doing there?
    ... The guy that rebuilt my engine didn't put anything in ... that hole. ... What is it's purpose and any precautions besides the ...
    (rec.motorcycles.harley)
  • Re: Synthetic Motor Oil
    ... specifically formulated for that purpose. ... 0W20 certainly covers the viscosity of OEM 2 cycle engine oil. ...
    (rec.autos.tech)
  • Re: Whats this part?
    ... What is the purpose of it's vibration damping/ ... I don't think it was bolted to the engine, if I recall it was bolted to te ... >> appear to have any purpose that I can see it measures about 5x2x2. ...
    (rec.autos.makers.vw.watercooled)
  • Re: Attn Panhead geeks: What the heck is that screw doing there?
    ... The guy that rebuilt my engine didn't put anything in ... that hole. ... What is it's purpose and any precautions besides the ...
    (rec.motorcycles.harley)