4 ms·
No, it doesn't. The reason the tweaks are at the OS level is because, apparently, Loom-enabled JVMs already scale up to that level without needing any tuning. B
by mike_hearn 5y ago
No, it doesn't. The reason the tweaks are at the OS level is because, apparently, Loom-enabled JVMs already scale up to that level without needing any tuning. But if you try that in C++ you're going to die very quickly.
- gpderetta 5y agoThere have been userspace thread libraries for c++ for decades.
- yosefk 5y agoSure, 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.
- gpderetta 5y agoThere are .so interposition tricks that can be used for that. I think Pth used to do that for example.
- pjmlp 5y agoWith C++ co-routines and a runtime like HPX, not really. However there are other reasons why a C++ applications connected to the internet might indeed die faster than a Java one.