3 ms·
I agree. Paul Turner at Google did a presentation at LPC in which he presented an alternative model that actually uses OS threads: https://blog.linuxplumberscon
by pcwalton 7y ago
I agree. Paul Turner at Google did a presentation at LPC in which he presented an alternative model that actually uses OS threads: https://blog.linuxplumbersconf.org/2013/ocw/system/presentations/1653/original/LPC%20-%20User%20Threading.pdf https://blog.linuxplumbersconf.org/2013/ocw/system/presentat...
Unfortunately the work seems to have stalled out and never made it into the kernel. If that work actually makes it into the Linux kernel, then other languages like C++ and Rust that have more stringent runtime requirements could make uses of lightweight threading as well.
- weberc2 7y agoWhat’s the advantage of lightweight threading features? I thought your position (based on comments elsewhere) was that kernel threads are roughly as fast as it gets? What am I misunderstanding?
- toolslive 7y agoThreads are fast, when they are working for you. If not, you need to wait until the work gets scheduled... and thread context switching is slow.
- pcwalton 7y agoI think M:N threads mostly aren't worth the drawbacks right now, but those proposed kernel features would change the calculus significantly.