This module implements process groups. Each message may be sent to one, some, or all members of the group.
A group of processes can be accessed by a common name. For
example, if there is a group named
If a member terminates, it is automatically removed from the group.
This module is used by the
The name of a process group.
Creates a new, empty process group. The group is globally visible on all nodes. If the group exists, nothing happens.
Deletes a process group.
This is a useful dispatch function which can be used from client functions. It returns a process on the local node, if such a process exist. Otherwise, it chooses one randomly.
Returns all processes in the group
Returns all processes running on the local node in the
group
Joins the process
Makes the process
Returns a list of all known groups.
Starts the pg2 server. Normally, the server does not need
to be started explicitly, as it is started dynamically if it
is needed. This is useful during development, but in a
target system the server should be started explicitly. Use
configuration parameters for