by dboreham · 4y ago · 0 comments
> Each thread easily uses an additional Megabytes of memory
isn't quite the problem it seems because unless the thread actually _uses_ large amounts of stack, the memory consumed is mostly virtual. With today's 64-bit architectures, there is plenty of virtual address space to be burned.
Deep stacks are pretty common in modern software especially for Java software.
And every argument that OS threads are good enough is in stark contrast to the length to which people go to avoid using them. I am talking about all the async libraries/patterns/language features people use to avoid using OS-level threads.