当决定一个客户端参数结构到一个OTP gen_server时,是否需要将Pid和Node name都插入到参数结构中?给定一个远程pid,是否可以将pid转换为node name?我指的是完整的节点名称,如"emacs@yus-iMac.local".
OTP
Pid
Node name
pid
node name
"emacs@yus-iMac.local".
9rnv2umw1#
调用node(Pid)将返回Pid所在节点的名称。
node(Pid)
zz2j4svz2#
Can someone explain the structure of a Pid in Erlang?How do I found out which node an erlang process is running on?
2条答案
按热度按时间9rnv2umw1#
调用
node(Pid)
将返回Pid
所在节点的名称。zz2j4svz2#
Can someone explain the structure of a Pid in Erlang?
How do I found out which node an erlang process is running on?