Re: Question : Broadcast Inter Process Communication ?

Alan Cox (alan@lxorguk.ukuu.org.uk)
Sat, 18 May 2002 04:04:52 +0100 (BST)


> This "one sender - multiple reader" model seems common and
> usefull enough that there must be a way to do that under Linux. I know
> that it exist under Windows. Can somebody help me to find out how to
> do it under Linux ?

Its actually a nontrivial construct - especially since readers can vanish
and appear asynchronously during the lifetime of any event. You could
implement it with multiple linked lists of pointers to refcounted objects,
and you could do that in user space (eg with shared memory), the chances
are that for all but the most extreme cases sending a copy of the event to
each listener is cheaper, simpler and more debuggable
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/