P开发者_如何学编程ossible Duplicate:
How do interrupts in multicore/multicpu machines work?
what is interrupted by a hardware interrupt? one particular CPU core execution or all CPUs in the system?
The CPU is i7 or Xeon X3450
Interrupts are tied to the CPUs by the hardware driver servicing them. Hardware routing of the interrupts is handled by an APIC. So the driver (software in the kernel) can decide which CPUs get notice of the interrupt.
A hardware interrupt interrupts a single core, depending on SMP affinity. It doesn't have to be the same core always, i.e. you can process a network packet in a core, and the next one in another core.
精彩评论