[erlang-questions] Questions about PID of remote process

Bernard Duggan bernie@REDACTED
Thu May 13 08:16:13 CEST 2010


On 13/05/10 15:50, Ulf Wiger wrote:
>
>> 2. Can the PID be reused in one node? If a process identified by one PID
>> died, then this PID can be used to identify other process created later?
>>      
> Not if you monitor the process. The monitor is a known reference to the
> Pid, so it will not be reused. Otherwise, the garbage collector has no
> knowledge of references to the Pid kept on disk or on other nodes.
>    
Ah, right - thanks for clarifying that, Ulf.  Does the monitor continue 
to remain a "known reference" after it sends the {'DOWN'...} message 
about the process?  If so, what, if any, condition /does/ release a 
monitored PID for garbage collection?

Cheers,

Bernard


More information about the erlang-questions mailing list