哪些硬件中断实际上是中断?
Possible 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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
中断通过为 CPU 提供服务的硬件驱动程序与 CPU 绑定。中断的硬件路由由 APIC 处理。因此驱动程序(内核中的软件)可以决定哪些 CPU 收到中断通知。
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.
硬件中断会中断单个内核,具体取决于 SMP 关联性。它不必总是相同的核心,即您可以在一个核心中处理网络数据包,并在另一个核心中处理下一个网络数据包。
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.