两个过程之间的链接Pid1,并Pid2通过创建Pid1调用BIFlink(Pid2)(或相反)。还有一些spawn_linkBIF,在一次操作中产生并链接到一个进程。
输出 start_link(Server,NoteStore)->{ok,Pid}|{error,Reason} 类型 启动-链接网络接口进程. Server是管理过程的PID。
生成的进程将执行给定的函数,并在函数完成后退出: iex>pid=spawnfn->1+2end#PID<0.44.0>iex>Process.alive?
php$title = "My Amazing PHP Script";$pid = getmypid(); // you can use this to see your process title
输出 start_link(Prio,NoteStore,MasterAgent,Opts)->{ok,Pid}|{error,Reason} 类型 启动-链接网络接口进程.

扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2026 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059
粤公网安备44030502008569号
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号
