现在有一个锁机制来确保每次仅能有一个线程经过任何已包装的调用。
There is now a locking mechanism to ensure that only one thread at a time goes through any of the wrapped calls.
CouchDB没有锁机制;两个客户机可以同时加载和编辑同一个文档。
CouchDB does not feature locking mechanisms; two clients can load and edit the same document at the same time.
如果您真的想知道是同步更快还是锁机制更快(或者回答任何类似的微性能问题),那么应该怎么做呢?
If you really want to know whether synchronization is faster than an alternate locking mechanism (or answer any similar micro-performance question), what do you do?
应用推荐