Lock free concurrent hash map

polaris · · 1335 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>I was looking around for a lock free thread safe hash map implementation but couldnt seem to find one. Is there something similar to Java ConcurrentHashMap that uses CAS instead existing out there?</p> <p>The other thing I was looking around but couldnt seem to find is an optimistic read type of lock similar to: <a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/locks/StampedLock.html">https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/locks/StampedLock.html</a> It tends to perform much better than ReadWrite lock for some of my use cases in Java, so I was wondering how it would look like in Go.</p> <p>if you&#39;ve seen such packages flying around on github please share.</p> <hr/>**评论:**<br/><br/>albatr0s: <pre><p>Out of curiosity, have you tried with the &#34;standard&#34; way already and find it not performant enough?</p></pre>Feribg: <pre><p>I need to compare first, i have no point of reference with just the standard way.</p></pre>dgryski: <pre><p><a href="http://go-search.org/search?q=lock-free+map" rel="nofollow">http://go-search.org/search?q=lock-free+map</a></p></pre>

入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889

1335 次点击  
加入收藏 微博
1 回复  |  直到
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传