對於這種情況:進程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?