Date: Sun, 8 Jan 2017 15:26:59 -0800 From: Yuri <yuri@rawbw.com> To: Freebsd hackers list <freebsd-hackers@FreeBSD.org> Subject: Why regular user with realtime priority can't run pthread_setschedparam(3) with sched_priority=10 ? Message-ID: <52cf051e-8c8a-d844-2756-9d2079cdd33d@rawbw.com>
next in thread | raw e-mail | index | archive | help
The process (jackd) calls this code: > rtparam.sched_priority = priority; // =10 > if ((x = pthread_setschedparam (thread, SCHED_FIFO, &rtparam)) != 0) { It succeeds when the process is run as 'root'. It fails when the process is run as a regular user with realtime priority (set with rtprio 0): Operation not permitted Why realtime priority of the process doesn't make high priority threads possible? Yuri
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?52cf051e-8c8a-d844-2756-9d2079cdd33d>