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