2

Assume:
1) Multi-cpu environment
2) Process that gets interrupted, is the same process that executes the interrupt handler, so I guess technically nothing gets interrupted except what the process was doing before, but it is still executing as it is executing the handler.
3) There is no top or bottom half, when an interrupt takes place the handler is invoked, executes, then return from interrupt, simple as that.

Why would sleeping the handler (puts in sleep queue, context switch to next runnable process) be a bad idea?

4

1 回答 1

0

请参考为什么在中断上下文中执行的内核代码/线程不能休眠?

我刚刚发布了答案。希望它对你有意义。

于 2011-01-16T23:31:56.037 回答