[英]Erlang process monitoring itself
我正在嘗試在Erlang中創建一個可以監視自身並重新啟動它的進程。 到目前為止,我根本沒有運氣,所以沒有任何代碼可以顯示。 這在Erlang中是否可能,如果是這樣,怎么樣?
編輯: J Fritsch發布了一個樣本的鏈接,該樣本只監視自己但只有一次。 如果退出(醫生,醫生)。 使用兩次它第二次不起作用。 有關如何繞過這個的任何想法?
如果進行監測的過程就是那個正在進行監視的過程,那么你總會陷入困境。
使用主管。
[英]Process Monitoring
[英]Wait on the reply of a process Erlang
[英]Erlang finish or kill process
[英]Erlang in Windows - Process Increase?
[英]Erlang process event error
[英]erlang spawn process error?
[英]Monitoring a remote process
[英]Process monitoring CreateProcessNotifyRoutineEx
[英]Monitoring a process in Windows
[英]Monitoring the execution of all process
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.