Technique 2: Reducing lock granularity.
技术2:减小锁的粒度。
In this case, lock granularity is very important.
在这种情况下,锁的粒度是非常重要的。
This method supports multiple granularity lock, automatic lock and automatic lock escalation.
该方法支持多粒度锁、自动加锁特性和自动锁粒度升级特性。
Then, the two granularity locks, document-lock and path-lock, are proposed to meet the actual needs, by analyzing from the perspective of the lock and the data concurrence.
接着,从锁的角度和并发度的分析,提出能够满足实际需求的两种粒度锁——文档锁和路径锁。
Then, the two granularity locks, document-lock and path-lock, are proposed to meet the actual needs, by analyzing from the perspective of the lock and the data concurrence.
接着,从锁的角度和并发度的分析,提出能够满足实际需求的两种粒度锁——文档锁和路径锁。
应用推荐