In this guide, we will discuss Erlang registered. Returns a list with the names of all registered processes.
Syntax
registered()
Parameters
- None
Return Value
Returns a list with the names of all the registered processes.
For example
-module(helloworld). -export([start/0]). start() -> io:fwrite("~p~n",[registered()]).
Output
When we run the above program, we will get the following result.
[kernel_safe_sup,rex,erl_prim_loader,kernel_sup,inet_db,global_name_server, code_server,file_server_2,application_controller,init,user,standard_error, global_group,error_logger,standard_error_sup]
Next Topic : Click Here
Pingback: Erlang - pid_to_list | Adglob Infosystem Pvt Ltd
Pingback: Erlang - Processes | Adglob Infosystem Pvt Ltd