Guest User

Untitled

a guest
Nov 21st, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. * If an unprivileged thread has a nonzero RLIMIT_RTPRIO soft limit, then it can change its scheduling policy and priority, subject to the restriction that the priority cannot be set to a value higher than the maximum of its current prior‐
  2. ity and its RLIMIT_RTPRIO soft limit.
  3.  
  4. * If the RLIMIT_RTPRIO soft limit is 0, then the only permitted changes are to lower the priority, or to switch to a non-real-time policy.
  5.  
  6. * Subject to the same rules, another unprivileged thread can also make these changes, as long as the effective user ID of the thread making the change matches the real or effective user ID of the target thread.
  7.  
  8. * Special rules apply for the SCHED_IDLE. In Linux kernels before 2.6.39, an unprivileged thread operating under this policy cannot change its policy, regardless of the value of its RLIMIT_RTPRIO resource limit. In Linux kernels since
  9. 2.6.39, an unprivileged thread can switch to either the SCHED_BATCH or the SCHED_NORMAL policy so long as its nice value falls within the range permitted by its RLIMIT_NICE resource limit (see getrlimit(2)).*
Add Comment
Please, Sign In to add comment