lkml.org 
[lkml]   [1999]   [Feb]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectTimers in SMP

Hi to all,

I'm looking at the scheduling routines in sched.c in the kernel 2.2.1,
and I have some questions regarding the timer. My understanding is that
every 10 ms a timer interrupt comes and the kernel checks if it needs
to do a context switch or not.

So, assuming an SMP machine and an x86 architecture, my two questions
are

- which CPU is interrupted by the timer ? Is it always the same ? If
not, where should I look to the mechanism of CPU selection ?

- if we wish the interrupted CPU to preempt some of the other CPUs, is
this possible ? I understand there are some kind of interrupt mechanism
between CPUs.

Thanks in advance

Hugo

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:50    [W:0.042 / U:0.040 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site