[erlang-questions] Sending messages to gen_event manager

Ulf Wiger ulf@REDACTED
Sat Jul 21 22:28:43 CEST 2007


Yes, or perhaps more commonly, send messages to
pre-existing servers.

BR,
Ulf W

2007/7/21, Ben Hood <0x6e6562@REDACTED>:
> > > 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
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions
>



More information about the erlang-questions mailing list