RSS

Workers and supervisors

09 May

Herd of workers and supervisors :).In real world workers are doing the actual work and supervisors are monitoring the behaviour of workers

Well ,here it is about Erlang supervisors.In Erlang Workers are processes which perform the actual work whereas supervisors are processes which monitor the behaviour of workers.At the same time supervisor can restart the worker if something goes wrong.

Graphical representation of supervisor and worker.

Rectangular shape -supervisor
eclipse /circular shape -worker.
This is called supervision tree.
According to this supervision tree, there is one supervisor and under that supervisor there is one worker.
In Erlang there are different types of supervisors are defined according to their behavior.

They are

one_for_one

one_for_all

simple_one_for_one.

Advertisements
 
Leave a comment

Posted by on May 9, 2009 in technology

 

Tags: , , ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: