Then, when a higher priority task is scheduled, it would simply burn the CPU trying to lock a "spin-lock".
然后,当一个更高优先级的任务计划,它只会消耗CPU试图锁定“旋转锁”。
You might find them by inspecting your binary for the typical spin-lock pattern at your system, e. g. , loop: CMPXCHG <adr>, JRZ loop.
你可能会发现他们通过检查你的系统二进制为典型的旋转锁模式,例如,loop:CMPXCHG <adr>,JRZ loop 。
Spin locks work well in cases where lock durations are very short.
当锁被占有的时间很短时,自旋锁的效果非常好。
With adaptive spinning the duration of the spin is not fixed anymore, but determined by a policy based on previous spin attempts on the same lock and the state of the lock owner.
自适应意味着自旋的时间不再固定了,而是取决于一个基于前一次在同一个锁上的自旋时间以及锁的拥有者的状态。
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密集型的,显得效率低下,但是如果争夺的锁被持有的时间非常短,那么旋转锁要比暂挂线程然后再唤醒它更有效率。
I want to be very clear about how a spin lock and a Shared resource come to be associated.
我想要很清楚地(说明):一个旋转锁和一个共享资源是如何被关连在一起的。
There is often two entry points to a scheduler, voluntary (waiting for IO etc) and involuntary, spin lock issues will almost always be involuntary, so this should reduce your work rate.
通常有两个入口点调度器,自愿(等待IO等)和不自觉的,几乎总是会无意识的旋转锁问题,所以这应该降低你的工作效率。
We decide that we will access the resource only while owning the spin lock.
我们将要访问的只有具有旋转锁的资源。
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)可通过制动和节气门控制来控制轮胎打滑。
应用推荐