[erlang-questions] Restarting processes

Daniel Ginsburg dg@REDACTED
Thu Mar 29 19:12:28 CEST 2007


Mats Cronqvist пишет:

>   i can see two easy ways to do this.
>   in either case the workers should monitor the demux.
>   * the workers poll on the demux registered name.

You mean, calling whereis(demux_name) is a cycle? Well, if other
approaches won't work, I think I'll do just that.

>   * the demux has an ets table with all worker pids, and notify them at
> startup.

I might be confused about how ets works, but if demux has an ets table
and terminates, the table will vanish along with it's owner, won't it?

-- 
dg



More information about the erlang-questions mailing list