- 论坛徽章:
- 0
|
这是书上讲到signal_wake_up()函数时的一段:
If try_to_wake_up( ) returned 0, the process was already runnable: if so, it checks whether the process is already running on another CPU and, in this case, sends an interprocessor interrupt to that CPU to force a reschedule of the current process (see the section "Interprocessor Interrupt Handling" in Chapter 4). Because each process checks the existence of pending signals when returning from the schedule( ) function, the interprocessor interrupt ensures that the destination process quickly notices the new pending signal.
"Because each process checks the existence of pending signals when returning from the schedule( ) function"?为什么说的是从schedule()返回时检测pending signal.不是从中断处理中返回检测吗?和schedule有什么关系呢? |
|