3 ms·
What about memory? the real price of threads is the stack. Even when perfectly optimized, it wouldn't be enough to handle serious workloads.
by _davide_ 2y ago
What about memory? the real price of threads is the stack.
Even when perfectly optimized, it wouldn't be enough to handle serious workloads.
- kaba0 2y agoWell, the runtime (instead of the OS) knows better and can e.g. allocate part of the call stack on the heap itself, like how Java’s virtual threads do.