« Return to Thread: sending of messages to several childs

Re: sending of messages to several childs

by wde :: Rate this Message:

Reply to Author | View in Thread


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
wde@...
02/07/2009

 « Return to Thread: sending of messages to several childs