process switch...



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.

.



Relevant Pages

  • Re: When to use the /3 GB switch
    ... With 3GB of physical RAM in your box, no you shouldn't enable the /3GB ... This switch would be better off called the 1GB switch rather than the ... 3GB switch because what it actually does is reduce the kernel mode ... well leave it at the standard 2/2 split. ...
    (microsoft.public.sqlserver.server)
  • Re: P5W-DH-Deluxe how to get 3gb memory to be used in 32bit XP Pro ?
    ... The /3GB switch has nothing to do with making a 32-bit operating ... every application can have up to 2GB of kernel mode virtual ... class applications. ...
    (alt.comp.periphs.mainboard.asus)
  • Re: Switching to 64-bit kernel
    ... > if I switch to 64 bit kernel mode? ... Am I likely to encounter any AIX ... Just a side note that is fresh on my mind. ...
    (comp.unix.aix)
  • Re: enable Full Kernel Mode
    ... So there is no reason to switch my Image to Full Kernel Mode except I want ... >> In this case all my device drivers run in USER MODE and have no access ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Numbered list problem
    ... I don't like having cascading chains, because it confuses me, but I like being able to change the font at one swoop. ... wish to switch a document from Paper to Electronic output, I can instantly switch all the fonts from serif to sans by updating Normal Style. ...
    (microsoft.public.mac.office.word)