Top all-time · #22689
mira's blog
Personal blog · specificprotagonist.netprogrammingsystems
mira's blog is a personal blog at specificprotagonist.net about programming and systems. Since 2024, 3 different Hacker News readers have linked it 4 times, most often “Futexes at Home”. No feed was found, so read it on the site itself.
Too few sampled comments (1) to say how often HN recommends it.?
Why HN links it
HN readers link this post on futexes, the Linux kernel's locking primitive, and on how thread queues can be stored in user space. One commenter calls it a fun post and adds an alternative approach using the parking_lot Rust crate.
Summarised by Claude from a sample of 1 HN comments that link here. Each comment is marked recommending, critical or neutral (citing without judging); how this works.
Most-linked posts?
- Futexes at Home3 people · 4 mentions · first linked 2024-11-14
What Hacker News says?
Fun post! An alternative to using futexes to store thread queues in kernel space is to store them yourself. E.g. the parking_lot[0] Rust crate, inspired by WebKit[1], uses only one byte to store the unlocked/locked/locked_contended state, and under contention uses the address of the byte to index into a global open-addressing hash table of thread queues. You look up the object's entry, lock said entry, add the threa…
Comment linking /jvm-futex.html
on “Fun with Futex”Submitted Futexes at Home as a story · 9 points
HN discussionSubmitted Futexes at Home as a story · 2 points
HN discussionSubmitted Futexes at Home as a story · 1 points
HN discussion