Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
鉴于我可以将 PID 从一个进程发送到另一个进程,甚至跨节点,如果我从不同进程中的进程(可能在不同节点上)接收到 Pid,我如何找出有问题的 PID 在哪个节点中运行/上?
erlang:process_info(Pid)里面似乎没有这些信息。
erlang:process_info(Pid)
谢谢。
erlang:node/1
节点(Arg)-> 节点 返回 Arg 所在的节点。Arg 可以是 pid、引用或端口。如果本地节点不活跃,则返回 nonode@nohost。
节点(Arg)-> 节点
返回 Arg 所在的节点。Arg 可以是 pid、引用或端口。如果本地节点不活跃,则返回 nonode@nohost。