[erlang-questions] Sending messages to gen_event manager

Ben Hood <>
Sat Jul 21 19:14:29 CEST 2007


> > So the implication of the serial execution is that if you wanted
> > different events to be handled by different handlers concurrently, you
> > would have to use separate manager processes, right?
>
> The usual way to solve that is to have one event manager, and
> handlers which do as little as possible - in that case only
> forwarding the event to some server which does the actual
> processing. The event handler becomes an interrupt driver
> of sorts.

OK, so what you are saying is the events get dispatched sequentially
but they immediately spawn off server processes which execute
asynchronously, thereby parallelizing the actual processing work.

Ben



More information about the erlang-questions mailing list