gpt4 book ai didi

Erlang:{from, Pid, Ref}形式的这个进程标识符是什么?

转载 作者:行者123 更新时间:2023-12-04 18:44:53 25 4
gpt4 key购买 nike

我现在面临一个问题。当我检查 erl_crash.dump 时,我发现了一些如下内容:

=proc:<0.19275.17>  
State: Scheduled
Spawned as: proc_lib:init_p/5
Spawned by: <0.18723.17>
Started: Wed May 8 13:30:40 2013
Message queue length: 1
Number of heap fragments: 0
Heap fragment data: 0
Link list: [<0.20051.17>, <0.9976.18>, ..., **{from,<6524.13.0>,#Ref<6524.0.1.37040>}, {from,<6474.13.0>,#Ref<6474.0.1.36682>}, {from,<6470.13.0>,#Ref<6470.0.1.34219>}**, ...]

有类似 {来自,Pid,引用} 在 proc <0.19275.17> 的链接列表中。
我不知道这些奇怪的形成过程标识符是什么。我想这可能与“进程监控”有关。我对吗?我仍然想知道如何生成这样的进程标识符以及如何使用它们?

先感谢您 :)

最佳答案

这意味着该进程被其他进程监视。从文档:

If process monitoring is used, this field also tells in which direction the monitoring is in effect, i.e., a link being "to" a process tells you that the "current" process was monitoring the other and a link "from" a process tells you that the other process was monitoring the current one.



您可以找到更多信息 here

关于Erlang:{from, Pid, Ref}形式的这个进程标识符是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16534591/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com