Re: process switch...



On 28 Dec 2005 06:43:30 -0800, Mozis <chokshi.jaydeep@xxxxxxxxx> wrote:

> I read in Understanding Linux kernel that process switch only happens
> in kernel mode. Now I confuses how come a process like having following
> code being switched out.
>
> /*process.c*/
> main()
> {
> for(;;) ;
> }

Timer interrupts are handled in kernel mode. At that time the kernel
can suspend that process and run another one.


--
-| Bob Hauck
-| A proud member of the reality-based community.
-| http://www.haucks.org/
.