why no per-thread scheduling niceness?

John Baldwin jhb at freebsd.org
Tue Feb 26 22:09:32 UTC 2013


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


More information about the freebsd-hackers mailing list