go top

网络释义

  compare-and-swap

ReentrantLock 源代码_TechQ 知识库 线程安全(可以看成一个操作,并且是在多处理器的环境下安全),而且效率极高,因为现代CPU几乎都支持 CAS (比较并交换,compare and swap)指令,这个方法最终是由一个native 方法执行CAS 如果原子操作尝试失败,说明锁被其他线程获得

基于1个网页-相关网页

双语例句

  • 比较交换(CAS)。

    Compare and swap (CAS).

    youdao

  • Intel处理器中,比较交换通过指令cmpxchg系列实现

    On Intel processors, compare-and-swap is implemented by the CMPXCHG family of instructions.

    youdao

  • 表面之下,原子变量操作变为平台提供用于访问硬件原语比如比较并交换

    Under the hood, operations on atomic variables get turned into the hardware primitives that the platform provides for concurrent access, such as compare-and-swap.

    youdao

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

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

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