Communicating between processes

Hi!

Could someone help me with an example or guideline on how to implement
communication between different processes?

I’m using C++ and my plan is to run several processes (subsystems)
which should be able to communicate with each other. So far I’ve
designed the communication in UML using Interfaces (abstract classes),
but I’m a bit unsure how this is best done in the “real world” (i.e. in
C++ code). One of the subsystems must be able to run in Real-Time…

Regards
Arve

“Arve Slenes” <slenesa@oslo.geco-prakla.slb.com> wrote in message
news:3AFF9E5A.4CEA04C8@oslo.geco-prakla.slb.com

Hi!

Could someone help me with an example or guideline on how to implement
communication between different processes?

I’m using C++ and my plan is to run several processes (subsystems)
which should be able to communicate with each other. So far I’ve
designed the communication in UML using Interfaces (abstract classes),
but I’m a bit unsure how this is best done in the “real world” (i.e. in
C++ code). One of the subsystems must be able to run in Real-Time…

This is a huge topic to cover, I’m sure there are books on this subject
alone.
I personnaly feel there is not quick and easy recepie for these type
of problem.

I get the tedency to do it the other way around, based the design on the
architecture of the OS. I have once see somebody use C++ serialition
to send data using QNX message passing, the result was HUGE overhead.
They wanted flexibility over performance and the price to pay was high.

There are so many ways to do thing, it depends on what your priority are.


Regards
Arve

The client process should register itself using name_attach(), this allows
the client to create a name in the path name space. Other applications can
use name_open() to obtain a channel from the path name space.

You can then use MsgSend and MsgReceive passing the channel obtained from
the above name_* calls.

Regards.
Simon Platten

“Arve Slenes” <slenesa@oslo.geco-prakla.slb.com> wrote in message
news:3AFF9E5A.4CEA04C8@oslo.geco-prakla.slb.com

Hi!

Could someone help me with an example or guideline on how to implement
communication between different processes?

I’m using C++ and my plan is to run several processes (subsystems)
which should be able to communicate with each other. So far I’ve
designed the communication in UML using Interfaces (abstract classes),
but I’m a bit unsure how this is best done in the “real world” (i.e. in
C++ code). One of the subsystems must be able to run in Real-Time…

Regards
Arve