go top

spin lock

  • 自旋锁:一种用于多线程编程的同步机制,当一个线程尝试获取锁时,如果锁已被其他线程占用,该线程会一直循环等待,直到锁被释放。

网络释义

  自旋锁

... 优化屏障(Optimization barrier)、内存屏障(Memory barrier) 自旋锁Spin Locks) 我们详细讨论一下spin_lock(slp)宏(slp代表要获取的spinlock_t): ...

基于26个网页-相关网页

双语例句

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

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

    youdao

  • Furthermore, we can define as many spin locks as we want, to guard as many Shared resources as we want.

    另外我们可以定义我们要的旋转数量,守护我们想要得共享资源

    youdao

  • 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密集型的,显得效率低下,但是如果争夺持有时间非常,那么旋转锁要比暂挂线程然后唤醒有效率

    youdao

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

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

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