我对旋转锁的功能感到困惑.
自旋锁用于阻止进程重新调度.但是,在只有一个内核的机器中,使用自旋锁来防止上下文切换是否有用?
operating-system locking
locking ×1
operating-system ×1