FreeBSD/sys/kern/sched_4bsd.c
/*
 * Update the thread's priority when the associated process's user
 * priority changes.
 */
Update the thread's priority when the associated process's user
priority changes.
Update the thread ' s priority when the associated process ' s user priority changes .
static void
resetpriority_thread(struct thread *td)
{
	if (td->td_priority < PRI_MIN_TIMESHARE ||
	    td->td_priority > PRI_MAX_TIMESHARE)
		return;
	maybe_resched(td);
	sched_prio(td, td->td_user_pri);
}
static void resetpriority_thread ( struct thread * td ) { if ( td -> td_priority < PRI_MIN_TIMESHARE || td -> td_priority > PRI_MAX_TIMESHARE ) return ; maybe_resched ( td ) ; sched_prio ( td , td -> td_user_pri ) ; }
Update the thread's priority when the associated process's user
 priority changes.
Update the thread ' s priority when the associated process ' s user priority changes .
/* Only change threads with a time sharing user priority. */ /* XXX the whole needresched thing is broken, but not silly. */