Supervisors (was Re: #copyStack on Error)

Tony Garnock-Jones tonyg at lshift.net
Tue Oct 30 16:32:47 UTC 2007


James Foster wrote:
> One approach would be to have a "monitor" process that forks the "event
> consumer" process. If the event consumer process terminates, the monitor
> process would restart another one. The monitoring could be with a
> semaphore that the event consumer signals in an unwind block. The
> monitor process could also watch a flag to see if the event consumer
> should be terminated or restarted.

Erlang has a good approach here, with its notion of "supervisors":
http://www.erlang.org/doc/design_principles/sup_princ.html

Regards,
  Tony
-- 
 [][][] Tony Garnock-Jones     | Mob: +44 (0)7905 974 211
   [][] LShift Ltd             | Tel: +44 (0)20 7729 7060
 []  [] http://www.lshift.net/ | Email: tonyg at lshift.net



More information about the Squeak-dev mailing list