对于这种情况:进程B将等待进程A释放自旋,因此预先排好? Process A: -->spin lock --> do strict call --> before unlock time int Time int ISR: --> Process A time slice finished --> need schedule -->ISR ret --> schedule to Process
这是一个典型的CLH锁在java中: public class CLHLock{
private final AtomicReference tail;
// why we need this node?
private final ThreadLocal myPred;
private final ThreadLocal myNode;
我使用下面的API来杀死一个tasklet: tasklet_kill();
虽然杀微进程,我一直在使用spin_lock_irqsave禁用本地中断。为什么内核引发以下消息(警告): Attempt to kill taskletlet from interrupt
这难道不是最好使用tasklet_kill()一边拿着用spin_lock?