Thread Suspensions??
Ashwin Chandra
ashcs at ucla.edu
Wed Mar 9 18:05:36 PST 2005
So does anyone know why the following code in the scheduler causes normal processes like bash and cron to be suspended as well? I have printed out all the proc names in this loop (inside the if statements) and none of them are bash or cron.
FOREACH_THREAD_IN_PROC(p, td)
{
if(p->p_km_switch == P_NON_RUN)
if( !TD_IS_SUSPENDED(td) )
TD_SET_SUSPENDED(td);
else if(p->p_km_switch == P_RUN)
if(TD_IS_SUSPENDED(td))
TD_CLR_SUSPENDED(td);
}
More information about the freebsd-hackers
mailing list