On Wed, Jul 21, 2004 at 11:12:22AM -0400, Pierre A. Humblet wrote: >Here is another idea. >As noted in your comments, the children cannot change any of the >parameters (because they don't have access to the parent). To fix that >I am wondering if it wouldn't be better to use a FileMapping that can >be shared between parent and children, instead of an archetype. >Apparently that's what fhandler_tape does. See mtinfo_init () in >fhandler_tape.cc Perhaps that share can be created on demand when the >dsp is opened, instead of creating it for every process as tape does. >My understanding is very superficial, I apologize in advance if I >mislead you.
If this is all that's required, you could use an __attribute__((shared)) option to share the state among all processes. cgf