• In situations where reads greatly outnumber writes, volatile variables may also provide a performance advantage over locking.

    在某些情况下,如果读操作远远大于写操作,volatile变量还可以提供优于锁的性能优势。

    youdao

  • Unlike locking, volatile operations will never block, so volatiles offer some scalability advantages over locking in the cases where they can be used safely.

    volatile操作不会像锁一样造成阻塞,因此,在能够安全使用volatile的情况下,volatile可以提供一些优于锁的可伸缩特性。

    youdao

  • Unlike locking, volatile operations will never block, so volatiles offer some scalability advantages over locking in the cases where they can be used safely.

    volatile操作不会像锁一样造成阻塞,因此,在能够安全使用volatile的情况下,volatile可以提供一些优于锁的可伸缩特性。

    youdao

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

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

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