我们建议采用乐观锁定策略,将并发控制的责任委派给相应的应用程序逻辑。
Instead, we recommend the use of an optimistic locking strategy, delegating responsibility for concurrency control to appropriate application logic.
除了用于锁定和原子操作的其他并发实用程序,这些类也会经常使用。
In addition to the other concurrency utilities for locking and atomic operations, expect to use these classes regularly.
方式:指定了锁的拥有者所允许的访问类型,以及对锁定数据资源的并发用户许可的访问类型。
Mode: Specifies the type of access allowed for the lock owner as well as the type of access permitted for concurrent users of the locked data resource.
应用推荐