平锁 meaning in English
parallel thread sewing
Examples
- The bookkeeping and synchronization required to ensure fairness mean that contended fair locks will have much lower throughput than unfair locks
要确保公平所需要的记帐( bookkeeping )和同步,就意味着被争夺的公平锁要比不公平锁的吞吐率更低。 - A fair lock is one where the threads acquire the lock in the same order they asked for it ; an unfair lock may permit barging , where a thread can sometimes acquire a lock before another thread that asked for it first
公平锁使线程按照请求锁的顺序依次获得锁;而不公平锁则允许讨价还价,在这种情况下,线程有时可以比先请求锁的其他线程先得到锁。