[Barrelfish-users] publish/subscribe with send, notify and wait

Simon Peter speter at inf.ethz.ch
Sun Oct 2 21:33:16 CEST 2011


Hi Lucian,

> I need to implement a publish/subscribe mechanism, i.e. all processes
> that are waiting (are subscribed) for an event will be waken up when a
> condition/event has occurred.
>
> What is the easiest way to do this?
>
> Is there a notify/wait mechanism (server) already implemented? How about
> the send/recv primitives?

You might want to have a look at the semaphore implementation in chips. 
You can also use names in the nameserver directly to wait for an event. 
E.g. everyone waits for a certain name to be resolved. They will be 
woken up when that name is published.

> What is the easiest way to send messages between processes (dispatchers)?

The regular Barrelfish message passing primitives. I.e. create an 
interface definition and bind to it via Flounder. The specifics are 
explained in the IDC technote (#11).

Hope this helps,
Simon



More information about the Barrelfish-users mailing list