[erlang-questions] The most efficient way to make sure a remote process is alive

Evgeniy Khramtsov <>
Fri Jul 30 06:02:03 CEST 2010


30.07.2010 02:22, Logan, Martin wrote:
> I am looking for the absolute most efficient way to make sure a process, referenced by a pid I have, is alive. The process my pid references could of course be local or remote. There are lots of ways but I want the most efficient and I can't assume any application level code - this must be generic. Thoughts?
>
> Cheers,
> Martin
>
>    

rpc:pinfo/1,2. If the pid is local, rpc transforms into apply/3, so it 
is pretty efficient.

-- 
Regards,
Evgeniy Khramtsov, ProcessOne.
xmpp:



More information about the erlang-questions mailing list