Hacker News new | ask | show | jobs
by yosefk 1514 days ago
Sure, I wrote some myself. Q is what libraries you can use on top of the userspace thread package that are aware of the userspace threads rather than just using OS APIs and thus eg blocking the current OS thread.
1 comments

There are .so interposition tricks that can be used for that.

I think Pth used to do that for example.

Could you elaborate?
For example: https://www.gnu.org/software/pth/pth-manual.html#system_call...

See the hard system call wrapping. This is just one option.