Loading…
|
Translation uploaded |
|
|
String added in the repository |
|
Flags
safe-html, strict-same
Loading…
|
Translation uploaded |
|
|
String added in the repository |
|
For more information on implementation rationale, read the xref:rationale.adoc#rationale_concurrent_containers[corresponding section].该算法在查找和实际插入阶段都具有非常低的争用,代价是如果其他线程在同一个组上成功执行了插入操作,则当前计算可能需要重新开始。在实际应用中,重新开始的频率极低,根据我们的一些基准测试,其量级在百万分之一以内。