File locking - The process of obtaining an exclusive lock on a file over a network.
文件锁定——通过网络获取文件排它锁定的过程。
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可以提供一些优于锁的可伸缩特性。
In situations where reads greatly outnumber writes, volatile variables may also provide a performance advantage over locking.
在某些情况下,如果读操作远远大于写操作,volatile变量还可以提供优于锁的性能优势。
应用推荐