Skip to main content

boost_thread_priority

Function boost_thread_priority 

Source
pub(crate) fn boost_thread_priority(nice: c_int)
Expand description

Give the calling thread the nice level nice, below the default. setpriority takes it only with CAP_SYS_NICE or an RLIMIT_NICE that reaches it, which a session’s process rarely has; where it refuses, the request goes to rtkit over the system bus, which grants a level within the daemon’s own bounds to any process of the seat. A host without rtkit, or without a system bus at all as a container is, leaves the thread at the default, said once in the log.