回复：回复：[Zephyr-devel] Is this a bug? how to guarantee the "atomic semantics access of readyqueue" in "do_swap" function during context switch in SMP mode?
toggle quoted messageShow quoted text
i still belive there are race conditions exist.
in "do_swap" function, what would happen if others cpus pick up the "old" thread to run before it do the actual context backup?
because if "is_spinlock" set to 1, there are no others condition to prevent others cpus access the readyqueue,
how to deal with this?