is module a process in erlang

suresh saragadam <>
Wed Oct 20 08:59:01 CEST 2004



Bengt Kleberg <> wrote:
 
> modules are ''containers for functions''. a function can be run/executed 
> in a process.
 
functons can be executed in a process, we start a spawn for a funciton that is executed in process, 
 
then module is not a process,  and function is not a process 
 
like functions can be executed in a process , modules can also be executed in a process
 
regards
 
suresh saragadam 
 
suresh saragadam wrote:
> hi,
> 
> in erlang every thing is a process ? i just want to confirm it,
> 

only processes are proceses in erlang. :-)

you start a process with
erlang:spawn(...)/spawn_link(...)


> and how to trace that process,

see the dbg module. the function p(Pid, ...) might be able to do what 
you want. if combined with the correct tpl(...) calls...


> all the processes generated in that module come under that 'module process'

modules are ''containers for functions''. a function can be run/executed 
in a process.


> if i kill module process all the process under it can me terminated

if you kill a process all processes that are ''linked'' to it, see 
erlang:spawn_link(...), are terminated.


> can you please clarify it

unfortunatly i am not very good at this. please see the abundant 
documentation at http://erlang.org/doc.html. perhaps ''An Erlang 
course'' would be the right start?
or take a look at the many fine tutorials at http://www.sics.se/~joe


bengt

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20041019/463b7a18/attachment.html>


More information about the erlang-questions mailing list