http://man7.org/linux/man-pages/man3/pthread_getschedparam.3.html
The example section on this page states that a process needs privilege
in order to set real-time scheduling policy. If my understanding is
correct, this hasn't been necessary since Linux 2.6.12 and the
introduction of resource limit RLIMIT_RTPRIO.
Testing on 4.13.0 shows I can use the example code to set SCHED_FIFO or
SCHED_RR without privilege up to an RLIMIT_RTPRIO of 95.
Regards
Chris
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html