• 这项技术就是所谓自旋

    This technique is known as spin locking.

    youdao

  • 这样可以减少数目

    This reduces the number of spinlock operations.

    youdao

  • JD K 1.6中引入了适应旋锁

    The JDK 1.6 introduced adaptive spinning.

    youdao

  • 首先通过简单声明创建一个新的自旋锁

    First you create a new spinlock through a simple declaration.

    youdao

  • 这种自旋锁禁用了本地CPU中断

    This version of the spinlock disables soft interrupts on the local CPU.

    youdao

  • 中断服务函数中获得一个完全合理;

    Taking out a spinlock in an interrupt handler is a legitimate thing to do;

    youdao

  • 被占有的时间短时自旋的效果非常

    Spin locks work well in cases where lock durations are very short.

    youdao

  • 定义自旋锁之后可以使用大量变量了。

    Now that you have a spinlock defined, there are a number of locking variants that you can use.

    youdao

  • 然而还有一些使用旋锁必须要注意的问题

    However, there are a few rules about how you must work with spinlocks.

    youdao

  • 确保这个拷贝一个具有自旋锁临界区中发生的。

    Make sure this copying happens inside the critical section by holding a spinlock.

    youdao

  • 内核抢占机制操作旋锁代码所控制。

    The kernel preemption case is handled by the spinlock code itself.

    youdao

  • 我们的目标程序使用机制实现线程共享内存互斥访问

    The classic spin lock technology is introduced to implement the mutually exclusive access to Shared memory.

    youdao

  • 显然如果使用原版/,那么按照标准的用法使用这个自旋锁区分读线程写线程。

    Obviously, if your use of the lock is reader/writer in nature, this spinlock should be used over the standard spinlock, which doesn't differentiate between readers and writers.

    youdao

  • spin_unlock _ irqrestore函数释放旋锁,并且(通过flags参数)恢复中断

    The spin_unlock_irqrestore function releases the spinlock and restores the interrupts (via the flags argument).

    youdao

  • 另一方面如果占有时间那么自旋线程只会消耗CPU而不任何有用的工作,因此带来浪费

    On the other hand, if the lock is held for a longer time, spinning is wasteful as the spinning thread consumes CPU without doing anything useful.

    youdao

  • 如果同一个对象上,刚刚成功过,并且持有线程正在运行中,那么自旋很有可能再次成功

    If spinning succeeded on that same lock object in the recent history and the thread holding the lock is running, then spinning is likely to succeed again.

    youdao

  • 适应意味着时间不再固定了,而是取决于基于前一同一个自旋时间以及的拥有者的状态

    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.

    youdao

  • 机制描述了仍然使用中,但是仅仅互斥获取一个

    The spinning mechanisms described under latches is still used, but only to get one of the latches in the mutex.

    youdao

  • 机制描述了仍然使用中,但是仅仅互斥获取一个

    The spinning mechanisms described under latches is still used, but only to get one of the latches in the mutex.

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定