Skip to content
Back to the collection

Threads cannot be implemented as a library

Hans-J. Boehm

2005 · Proceedings of the 2005 ACM SIGPLAN conference on Programming language design and implementation

Read the paper
HN score
1.5
Mentions
3
Readers
3
Months
3
What’s in a score?

In the conversation

Original HN comments, with labels from simple text rules. A label describes the whole comment and may miss context or irony. Read the discussion to make up your own mind. About the labels

3 selected excerpts · 3 total mentions

scott_s
Strong recommendation · rule
Hans Boehm has an excellent paper on this topic, "Threads Cannot be Implemented as a Library", https://dl.acm.org/doi/10.1145/1065010.1065042. (Yes, the full paper is free to read from the ACM! They've made the entire library publicly available during the pandemic.) Before you dismiss the paper based on the title, let me correct it and say it really should be "Threads should not be implemented as a library." Boehm's argument is that when you implement something like threads as a library, and the language itself is not aware of the semantics, lots of bad stuff happens.
pwdisswordfish9
Neutral mention · rule
> our official stance is not actually as strict as “no threads, period”, though in practice for many people it might amount to that. There is nothing stopping you from linking to pthreads or calling clone(2) to spin up threads in a Hare program, but the standard library explicitly provides no multi-threading support, synchronization primitives, or re-entrancy guarantees https://dl.acm.org/doi/10.1145/1065010.1065042

Keep following the thread.

More in Other research

More from the same topics.