Comment Comment by ibraheemdev > OS threads are expensive: an operating system thread typically reserves a megabyte of stack spaceWhy is reserving a megabyte of stack space "expensive"?> and takes roughly a millisecond to createI'm not sure where this number is from, it seems off by a few orders of magnitude. On Linux, thread creation is closer to 10 microseconds. parent ibraheemdev 6 months ago
Why is reserving a megabyte of stack space "expensive"?
> and takes roughly a millisecond to create
I'm not sure where this number is from, it seems off by a few orders of magnitude. On Linux, thread creation is closer to 10 microseconds.