Date: Wed, 9 Mar 2005 18:05:39 -0800 From: "Ashwin Chandra" <ashcs@ucla.edu> To: <freebsd-hackers@freebsd.org> Subject: Thread Suspensions?? Message-ID: <001b01c52515$a88c6000$abe243a4@ash>
index | next in thread | raw e-mail
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);
}
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?001b01c52515$a88c6000$abe243a4>
