若使用粗粒度锁定(coarse-grained locking),即长期持有锁定以便尽可能降低获取和释放锁的开销,则可能有很多线程阻塞等待相同的锁,从而降低并发性;若使用细粒度锁定(fin...
基于12个网页-相关网页
粗粒度锁定
Coarse-grained locking
以上为机器翻译结果,长、整句建议使用 人工翻译 。
例如,在财务系统中的客户级别上:一个粗粒度锁会锁定该客户的所有帐户,另一个锁则可锁定全部保险策略。
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.
youdao
应用推荐
模块上移
模块下移
不移动