2012-11-14 41 views

回答

7

查看Erlang的文檔here。有一個名爲process_flag(Flag, Option)的BIF。

process_flag(priority, Level) 
% This sets the process priority. Level is an atom. 
% There are currently four priority levels: low, normal, high, and max. 
% The default is normal. 
+1

謝謝。我猜你在產卵之前就使用了這個函數?或者你把它放在你產卵的功能中? – atomh33ls

+0

@ atomh33ls看到[這個問題](http://stackoverflow.com/questions/13381036/what-is-the-correct-use-of-process-flagpriority-level-in-erlang)。如果你想改變外部的優先級,那麼會有process_flag/3 – halfelf