erlang - processes spawned on connected nodes get same PID -
I have 4 along nodes that work together on multi-process applications. In my order there is a process monitor which pulls the area of the field processes and 3 other nodes handle the process space and movement. On the monitor I use the ETS database to store locations when the key process is PID, I have found that the nodes make processes, which have the same PID, which clearly with the management of the entire system. Comes.
I have tried to connect these processes to:
net_adm: ping (...) net_kernel: connect (...). Hopefully, when the nodes know about each other, they will give the information of different PID but this will not work.
PID can be printed on the same, eg & lt; 0.42.0 & gt; , but this is just an output convention: PIDs are printed with the first number 0 on the local node. If you send this PID to another node and print it there, then it will be sent to & lt; 2265.42.0 & gt; or similar will be printed. PIDs are always associated with the name of the node, where the process is underway, and you can remove it from the node (pd) , therefore, the PID will never compare with different nodes. goes into more details about the structure of the PID.
Comments
Post a Comment