How to get PID of the process in Erlang?

Last updated:9/23/2020 1:15:09 PM

1 Answers

Tarun Kumar
Tarun Kumar

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.