Can I change the priority of a process in Erlang?

I understand from here http://cs.ucsb.edu/~puneet/reports/erlang.pdf (section 4.4) that process planning in Erlang is based on 4 different queues - with one designated as "highest priority". I have an Erlang program, and I would like to assign one process so that its teams join this queue. Is there any way to do this? Is there any watch - when is this done?

+6
source share
1 answer

Check out the Erlang doc here . There is a BIF called process_flag(Flag, Option) .

 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. 
+7
source

All Articles