Re: Shared Memory for Application/Communication decoupling



Christian Walter wrote:

Of course each IPC method brings in its own piece of code and using different IPC methods within a single task will introduce a lot of complexity.


Thanks a lot for sharing. Still I can't agree on this point because I
think the interface requirements are quite different. For example look
at other systems where different IPC mechanisms are used when
appropriate (EJB - Enterprise Java Beans with Locale and Remote
Interface to name only one). Maybe this would be a interesting poll for
the ESD magazine - ?Type of IPC mechanisms used today".

Kind regards,
Christian Walter

I don't want to get into arguments about semantics, but in general, shared memory techniques are just a nice way of saying 'global data'. If you have > 1 writer, you have to do all the synchronisation and mutual exclusion at low level, where it's difficult to maintian visibility and keep track of.

A messaging based interface is generally more elegant and arguably more reliable, since for any single message, only one task writes and one task reads the data. This means that you can elevate syncronisation issues to a higher, task based level. Message based ipc reinforces an object view of the design at global level.

On modern micros, the overhead is probably insignificant as well. Shared memory / global data is a thing of the past, from the days when micros were not very powerfull...

Regards,

Chris

.



Relevant Pages

  • Re: Shared Memory for Application/Communication decoupling
    ... different IPC methods within a single task will introduce a lot of complexity. ... Interface to name only one). ... I don't want to get into arguments about semantics, but in general, shared memory techniques are just a nice way of saying 'global data'. ...
    (comp.arch.embedded)
  • Re: Shared Memory for Application/Communication decoupling
    ... different IPC methods within a single task will introduce a lot of complexity. ... Interface to name only one). ... shared memory techniques are just a nice way of saying 'global data'. ... You are right with that that this is 'global data'. ...
    (comp.arch.embedded)
  • Re: Shared Memory for Application/Communication decoupling
    ... different IPC methods within a single task will introduce a lot of ... memory techniques are just a nice way of saying 'global data'. ... A messaging based interface is generally more elegant and arguably more ...
    (comp.arch.embedded)
  • RAC hang up after interface down
    ... Oracle 9.2.0.7 ... After interface down all nodes all nodes hang up. ... IPC Send timeout detected. ... Sender ospid 8003 ...
    (comp.databases.oracle.server)
  • Re: RAC hang up after interface down
    ... Oracle 9.2.0.7 ... After interface down all nodes all nodes hang up. ... IPC Send timeout detected. ... Sender ospid 8003 ...
    (comp.databases.oracle.server)