process switch...
- From: "Mozis" <chokshi.jaydeep@xxxxxxxxx>
- Date: 28 Dec 2005 06:43:30 -0800
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(;;) ;
}
it's not makin any sys. call or exception or any interrupt generation
so it doesn't need to swtich into kernel mode. now how come it's
getting switched.
I know there is somthing called time slices(SCHD_RR policy) and also
prorities should be taken into account on the basis of which scheduler
choose another process. but I confuse about the sentense "the process
switch only happens in kernel mode".
overlooking the priorities, on the time quanta basis, whenever it
expires for this process, it shoud get switched out, but it was running
in user mode so now how come it comes to kernel mode to be get swiched
that i dont know.
Regards,
Mozis.
.
- Follow-Ups:
- Re: process switch...
- From: Bob Hauck
- Re: process switch...
- Prev by Date: Re: How does rpm command compare 2 rpm files' version?
- Next by Date: Re: How to intercept a sys call.
- Previous by thread: Interrupt Top half
- Next by thread: Re: process switch...
- Index(es):
Relevant Pages
|