TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Things UNIX can do atomically

36 点作者 bgray超过 14 年前

2 条评论

billswift超过 14 年前
This was just posted 4 months ago <a href="http://news.ycombinator.com/item?id=1340115" rel="nofollow">http://news.ycombinator.com/item?id=1340115</a>
评论 #1685449 未加载
评论 #1685508 未加载
maw超过 14 年前
<i>__sync_fetch_and_add, __sync_add_and_fetch, __sync_val_compare_and_swap, and friends provide a full barrier so “no memory operand will be moved across the operation, either forward or backward.” These operations are the basis for most (all?) lock-free algorithms.</i><p>What's lock-free about that? It sounds like locks to me, only you don't implement them yourself. What am I missing?
评论 #1687234 未加载