The resulting context switches can cause a significant delay relative to the few instructions protected by the lock.
由此造成的上下文切换相对于锁保护的少数几条指令来说,会造成相当大的延迟。
2
The only reason for the delay could be that there are too many writer threads, and sufficient time has elapsed before a lock could be acquired.
造成延迟的惟一原因是写线程太多,要等待很长时间才能获得锁。
3
AutoLock has the same function, but also ads in a Locale plug-in that can be used to trigger the lock normally, or with a delay depending on where you are.