FreeBSD/sys/kern/sched_ule.c
/*
 * Penalize the parent for creating a new child and initialize the child's
 * priority.
 */
Penalize the parent for creating a new child and initialize the child's
priority.
Penalize the parent for creating a new child and initialize the child ' s priority .
void
sched_fork(struct thread *td, struct thread *child)
{
	THREAD_LOCK_ASSERT(td, MA_OWNED);
	sched_pctcpu_update(td_get_sched(td), 1);
	sched_fork_thread(td, child);
	sched_interact_fork(child);
	sched_priority(child);
	td_get_sched(td)->ts_runtime += tickincr;
	sched_interact_update(td);
	sched_priority(td);
}
void sched_fork ( struct thread * td , struct thread * child ) { THREAD_LOCK_ASSERT ( td , MA_OWNED ) ; sched_pctcpu_update ( td_get_sched ( td ) , 1 ) ; sched_fork_thread ( td , child ) ; sched_interact_fork ( child ) ; sched_priority ( child ) ; td_get_sched ( td ) -> ts_runtime += tickincr ; sched_interact_update ( td ) ; sched_priority ( td ) ; }
Penalize the parent for creating a new child and initialize the child's
 priority.
Penalize the parent for creating a new child and initialize the child ' s priority .
/*
	 * Penalize the parent and child for forking.
	 */