What is difference between register_name and register functions in Erlang?
Both register a PID as a name!
What is difference between register_name and register functions in Erlang? Both register a PID
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Digging up the documentation, I discovered that
register()is part of theerlangmodule whileregister_name()is part of theglobalmodule. So, it appears the main difference between the two functions is thatregister_name()will register a name globally for a network of Erlang nodes.Source