[erlang-questions] Re: supervisors

Wes James comptekki@REDACTED
Fri Apr 1 20:38:46 CEST 2011


What this boils down to is being able to use the same supervisor code
to load several processes, since they can be named different and won't
cause a name clash.

application:start(eapp)

bascially does

eapp_sup:start(a_sup,a1)  will start the supervisor named a_sup_a1 by
default, then you can run eapp_sup:start(a_sup,a2) and use the a_sup
code again but name the process a2, etc.

-wes



More information about the erlang-questions mailing list