Spin locks work well in cases where lock durations are very short.
当锁被占有的时间很短时,自旋锁的效果非常好。
While spin locks are CPU-intensive and appear inefficient, they can be more efficient than suspending the thread and subsequently waking it up if the lock in question is held for a very short time.
虽然旋转锁是cpu密集型的,显得效率低下,但是如果争夺的锁被持有的时间非常短,那么旋转锁要比暂挂线程然后再唤醒它更有效率。
The classic spin lock technology is introduced to implement the mutually exclusive access to Shared memory.
我们的目标程序使用自旋锁机制来实现线程间对共享内存的互斥访问。
Using the sensors and actuators of four-channel, four-sensor anti-lock brake system (ABS) USES both brake and throttle intervention to control wheel spin.
采用标准四通道、四传感器的防抱死制动系统(abs)可通过制动和节气门控制来控制轮胎打滑。
Using the sensors and actuators of four-channel, four-sensor anti-lock brake system (ABS) USES both brake and throttle intervention to control wheel spin.
采用标准四通道、四传感器的防抱死制动系统(abs)可通过制动和节气门控制来控制轮胎打滑。
应用推荐