I understand from here http://cs.ucsb.edu/~puneet/reports/erlang.pdf (section 4.4) that Process Scheduling in Erlang is based on 4 different queues - with one designated as 'highest priority'. I have an Erlang program and I'd like to assign one process so that its instructions join this queue. Is there a way to do this? Are there any watch-its when doing this?
Check Erlang's 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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With