亚洲区国产区激情区无码区,国产成人mv视频在线观看,国产A毛片AAAAAA,亚洲精品国产首次亮相在线

Erlang 進(jìn)程 unregister 方法

Erlang 進(jìn)程

這用于在系統(tǒng)中注銷(xiāo)進(jìn)程。

語(yǔ)法

unregister(atom)

參數(shù)

  • atom ?這是要賦予該過(guò)程的注冊(cè)名稱(chēng)。

返回值

None

-module(helloworld). 
-export([start/0, call/2]). 

call(Arg1, Arg2) -> 
   io:fwrite("~p~n",[Arg1]). 

start() -> 
   Pid = spawn(?MODULE, call, ["hello", "process"]), 
   register(myprocess, Pid), 
   io:fwrite("~p~n",[whereis(myprocess)]), 
   unregister(myprocess), 
   io:fwrite("~p~n",[whereis(myprocess)]).

當(dāng)我們運(yùn)行上面的程序時(shí),我們將得到以下結(jié)果。

<0.55.0>
"hello"
Undefined

Erlang 進(jìn)程