[erlang-questions] sending of messages to several childs

wde <>
Thu Jul 2 14:36:27 CEST 2009


you can use spawn_link/2 to spawn your children and use erlang:process_info(Father,links) to get all linked process

if the father process is a supervisor you can use supervisor:which_children/1

you can use pg or pg2 module to add all chidren to the same group  




 

  
======= le 02/07/2009, 14:02:48 vous écriviez: =======

>Hi all,
>
>Is it possible for a "father process" to send the same message to all spawned childs ?
>What is the syntax / or reference ?
>Thank's
>
>John
>

= = = = = = = = = ========= = = = = = = = = = =
			
wde

02/07/2009



More information about the erlang-questions mailing list