Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Jan 2017 00:15:21 +0800
From:      Julian Elischer <julian@freebsd.org>
To:        Yuri <yuri@rawbw.com>, Freebsd hackers list <freebsd-hackers@FreeBSD.org>
Subject:   Re: Why regular user with realtime priority can't run pthread_setschedparam(3) with sched_priority=10 ?
Message-ID:  <b27d5eb8-18c0-e1a7-e0df-358551642b5a@freebsd.org>
In-Reply-To: <52cf051e-8c8a-d844-2756-9d2079cdd33d@rawbw.com>
References:  <52cf051e-8c8a-d844-2756-9d2079cdd33d@rawbw.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 9/01/2017 7:26 AM, Yuri wrote:
> 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?
high priority threads have for all of unix history required special 
permissions (e.g. root) as they can negatively inpact other users.
It is assumed htat if you want to do rt work you must have root 
permissions

>
> Yuri
> _______________________________________________
> freebsd-hackers@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to 
> "freebsd-hackers-unsubscribe@freebsd.org"
>




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b27d5eb8-18c0-e1a7-e0df-358551642b5a>