Group leader

I am trying to configure what the group leader is and how it relates to the I / O module, but have not found anything useful on the Internet. Can someone explain to me?

I have the following script from Elixir 1.2 (Dave Thomas):
enter image description here

In the second window, why does it pass :erlang_group_leader? What is it good for?

+4
source share
1 answer

From the documentation :

group_leader() -> pid()

Gets the process identifier of the group leader for the process evaluating the function.

- , . / . , , . init , .

group_leader(GroupLeader, Pid) -> true

:

GroupLeader = Pid = pid()

Pid GroupLeader. , , , , , init.

See also group_leader/0.

, Elixir:

IO- , Erlang VM , / . - , : .

. , , node , .

+6

All Articles