2 Replies to “Threading revived”

  1. The thing I’m wondering, is why we (BSD and Linux folks) haven’t/can’t put our threading stuff into our libc’s. Am I missing some difficulty here?

  2. Historically there was an overhead resulting from the inclusion of threading functionality into libc. Another reason is that there in theory multiple threading interface you might want, not POSIX threads.
    But since the size argument is really weak these days, even for static applications, and there are almost no alternative APIs to POSIX threads left, the reasons to split libc and libpthread/libc_r vanished.
    In fact we (DF) plan to reintegrate libc_r into libc to simplify a lot of stuff, like the weak definition of many functions like open(2) which are cancellation points and need special handling in the threaded case.

Comments are closed.

Your post must include a link to this post.

How does this work?
Write a response on your own website and include a link to this post. Then submit your response’s URL here. Your response may appear here after moderation. To update or remove it, edit or delete your original post and submit the same URL again. Learn more about Webmentions.