On 3/17/06, James Yu <cyu021@xxxxxxxxx> wrote: > Hi folks, > > I make two kernel threads each with an endless loop. Base on my > understanding on timeslice, I thought scheduler will let another > thread to have CPU resource while one runs out its timeslice. However, > I observed only one kernel thread is running inside its endless loop. I think you are not using the preemptable kernel. > > Therefore, here is my question. Does timeslice have any effice on > kernel threads? and how? > If its a preemptable kern\el, it will preempt the running context when timeslice expires and and assign the CPU to other thread. Gaurav > Cheers, > -- > James > cyu021@xxxxxxxxx > > -- > Kernelnewbies: Help each other learn about the Linux kernel. > Archive: http://mail.nl.linux.org/kernelnewbies/ > FAQ: http://kernelnewbies.org/faq/ > > -- -- -Gaurav Email: gauravd.chd@xxxxxxxxx --------------------------------- Read my blog at: http://lkdp.blogspot.com/ --------------------------------- -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/