The conversion from locking to atomic variables achieves the same end - by switching to a finer-grained coordination mechanism, fewer operations become contended, improving throughput.
英
美
- 从锁定转换为原子变量可以获得相同的结果,通过切换为更细粒度的协调机制,竞争的操作就更少,从而提高了吞吐量。