Home > DeveloperSection > Interviews > How to get PID of the process in Erlang?

Posted on    March-07-2016 12:10 AM

 erlang Concurrent Programming  erlang 
 1 Answer(s)
  277  View(s)
Rate this:

Tarun Kumar

Total Post:107

Posted on    March-07-2016 1:10 AM

spawn() function is used to determine the process PID, it returns a new process with the PID of the process.
Example of Process creation:
spawn(Module_Name, Name, Args) -> pid()
Above, new process starts executing in Module_Name:Name(Args) where Name is the function name and Args is the argument list and argument lists are the no of possible elements which can be empty.

Modified On Mar-07-2016 12:23:41 AM

Don't want to miss updates? Please click the below button!

Follow MindStick