同步和合并是很复杂的工作,我们害怕因犯错而导致作业损失。
Synchronization and merging are complex to do and we're afraid of making mistakes that will result in loss of work.
表格中的数据是同步版本的运行时间相对于非同步版本的运行时间的比率;它显示了同步的性能损失。
The data in the table is the ratio of run time of the synchronized version to the unsynchronized version; it shows the performance penalty of synchronization.
并且无争用同步和争用同步间的性能损失差别很大;一个简单的测试程序指出争用同步比无争用同步慢 50 倍。
The cost difference between an uncontended synchronization and a contended one is huge; a simple test program suggested that a contended synchronization is 50 times slower than an uncontended one.
应用推荐