Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Feb 2013 15:30:37 -0500
From:      John Baldwin <jhb@freebsd.org>
To:        freebsd-hackers@freebsd.org
Cc:        Ian Lepore <ian@freebsd.org>
Subject:   Re: why no per-thread scheduling niceness?
Message-ID:  <201302261530.37936.jhb@freebsd.org>
In-Reply-To: <1361560374.1185.85.camel@revolution.hippie.lan>
References:  <1361560374.1185.85.camel@revolution.hippie.lan>

next in thread | previous in thread | raw e-mail | index | archive | help
On Friday, February 22, 2013 2:12:54 pm Ian Lepore wrote:
> I'm curious why the concept of scheduling niceness applies only to an
> entire process, and it's not possible to have nice threads within a
> process.  Is there any fundamental reason why it couldn't be supported
> with some extra bookkeeping to track niceness per thread?

Only that the existing 'nice' command only works on processes and nice is 
traditionally a process concept.  Also see things like renice.  Individual 
threads can already alter their priority somewhat (e.g. to set an individual 
thread to an idle or real-time priority).

-- 
John Baldwin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201302261530.37936.jhb>