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>
next in thread | raw e-mail | index | archive | help
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 =3D=3D P_NON_RUN) if( !TD_IS_SUSPENDED(td) ) TD_SET_SUSPENDED(td); =20 else if(p->p_km_switch =3D=3D P_RUN) if(TD_IS_SUSPENDED(td)) TD_CLR_SUSPENDED(td); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?001b01c52515$a88c6000$abe243a4>