Author: Bruce EvansBruce Evans
Date: Dec 31, 2007 21:38
On Mon, 31 Dec 2007, M. Warner Losh wrote:
> In message: <200712311219.08286.jhb@ freebsd.org>
> John Baldwin FreeBSD.org> writes:
> : The more correct fix though is to do a 'sched_prio()' at the start of the
> : thread's main loop to set the priority and then not adjust it via msleep().
> : Kernel threads really should never pass a priority to msleep() but always '0'
> : (which means "don't change my priority").
>
> Not PZERO? When should one use PZERO and when should one use a bare
> '0'? Can this information be added to the man page?
PZERO is compatibility cruft which should never be used. Just a few
places in kern still use it to invent a priority when no suitable
priority (like PSOCK or PRIBIO) is already #defined. It isn't clear
where these invented priorities are suitable.
|