2

How can I give a non-root user permission to execute pthread_setschedparam() to set thread priorities?

Thank you

3

Grant the CAP_SYS_NICE capability.

This can be done either by user or by application as explained here:

How to set CAP_SYS_NICE capability to a Linux user? | Stack Overflow

  • 1
    +1. Extending the answer with how to do it would be awesome. – user57260 Aug 12 '11 at 15:44
  • It turns out this is far from trivial. – reinierpost Jun 25 '14 at 16:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.