Coarse-Grained Lock 粗粒度锁 ; 广泛锁定 ; 用一个锁将一组相关对象都锁起来
fine-grained lock 细部锁定 ; 细粒度锁
Fine-grained thread lock 程序更自由地使用细粒度线程锁定
Cit. as a coarse-grained lock.
中被称为粗粒度锁。
And the location of every row is in a fixed location, allowing for techniques such as lock escalation when too many fine-grained locks would otherwise be needed.
并且由于每一行都被存储在固定的位置,使得锁升级这样的技术得以实现,以避免过多细粒度锁。
An example might be at the customer level in a financial system: one coarse grained lock could be to lock all accounts for the customer, another could be to lock all insurance policies.
例如,在财务系统中的客户级别上:一个粗粒度锁会锁定该客户的所有帐户,另一个锁则可锁定全部保险策略。
应用推荐