TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Things UNIX can do atomically

36 pointsby bgrayover 14 years ago

2 comments

billswiftover 14 years ago
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 未加载
mawover 14 years ago
<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 未加载