| ▲ | matheusmoreira 2 hours ago | |||||||
1 megabyte stacks mean ten thousand threads require 10 gigabytes of RAM just for the stacks. The entire point of the asynchronous programming paradigm is to reclaim all of those gigabytes by not allowing stacks to develop at all, by stealthily turning everything into a hidden form of cooperative multitasking instead. | ||||||||
| ▲ | monocasa 2 hours ago | parent [-] | |||||||
Only if they're resident. Otherwise you just need one page per thread of physical memory (so ~40MB on x86) and 10GB of virtual memory. | ||||||||
| ||||||||