[erlang-questions] Calling multiple processes simultaneously

Martin Dimitrov mrtndimitrov@REDACTED
Mon May 23 21:39:23 CEST 2011


> You can steal the logic from gen_server:call/N and adapt it for your
> purpose -- basically: setup monitors on all servers, send $gen_call
> tagged request to all servers, run a loop receiving responses and
> DOWN messages, accumulate successes/failures and return both lists
> when done. Also demonitor all non-DOWN servers afterwards.
>
Thanks for the reply but could you clarify the logic? What do you mean
by DOWN messages?

Regards,

Martin



More information about the erlang-questions mailing list