Supervisor starts children in parallel
Mon Dec 1 21:35:47 CET 2003
On 1 Dec 2003, at 19:56, Vance Shipley wrote:
> The supervisor behaviour seems to start it's children in parallel.
> I have a supervisor with two children in a one_for_all strategy.
> This causes a chicken and egg problem when these processes act as
> a pair. If they were started synchronously and in order there
> wouldn't be a problem. It would be very handy if there were a
> flag to specify either a synchronous or asynchronous startup.
I must admit I thought that the children were started one after the
other in a synchronous manner - at least as far as completing the init
function of each of the gen_servers. You are using start_link rather
than spawn_link to start the children?
More information about the erlang-questions