Submission timeline
2007–2026One slot for every year since HN launched. Height is that year's peak points; orange marks a 100+ point or 50+ comment breakout. Select a bar to open its strongest thread.
First comments on top threads
HN comment orderOne point that's frequently misunderstood about locks is that there's essentially no cost unless the lock is contested. This leads a lot of people to they must go lockless, when a simpler lock-based system would meet their requirements. A lot of systems fit neatly into a paradigm of a single threaded hot path, plus a lot of infrequent peripheral threads that only have a low statistical contention cost. For example let's say you want to process packets off the network…
"Lockless" sounds very positive, and it's tempting to think that everything should be made lockless. However, it's less great than it sounds. Mutexes are very cheap in the uncontended case, and in the contended case they have some nice properties. You should only consider going for a lockless algorithm if you can prove it is better than just using a mutex. Sometimes lockless algorithms are in fact slower than algorithms using locks, as things like atomic compare-and-exchange instructions can have…
The first top-level comment from each of the four biggest threads, in HN’s own order. Excerpts are shortened; open a comment for full context.
- Breakout years
- 2
- Total points
- 452
- Total comments
- 108
100+ points or 50+ comments
reference only — not used in Hall rules or ranking
reference only — not used in Hall rules or ranking
Every submission
| Date | Title as submitted | By | Points | Comments |
|---|---|---|---|---|
| 2021-03-04 | An Introduction to Lockless Algorithms | todsacerdoti | 3 | 0 |
| 2021-03-04 | An Introduction to Lockless AlgorithmsFirst breakout · Best thread | signa11 | 226 | 39 |
| 2023-04-08 | An Introduction to Lockless Algorithms | muxator | 3 | 0 |
| 2023-04-24 | An Introduction to Lockless AlgorithmsLatest 20+ point return | signa11 | 216 | 69 |
| 2024-12-29 | An introduction to lockless algorithms in Linux | fanf2 | 4 | 0 |
