2

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

Thank you

Nash
  • 121
  • 1
  • 3

1 Answers1

4

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

pilcrow
  • 449
  • 5
  • 19