[MLton] Stack size?
Wesley W. Terpstra
wesley@terpstra.ca
Fri, 8 Jul 2005 12:29:47 +0200
So, as I dug a bit deeper into the insides of MLton's threads, I found that
it copies the stack of the thread calling 'newThread'. Is this right? Why
doesn't a new thread get a new stack?
I am now concerned that if I try to crank up the number of threads, they
will be using too much stack for my application to reach 40k clients like C.
There's also a fair bit of work done by the runtime to make a thread and
context switch; why are so many layers needed?
(I have still not profiled this stuff; this just comes from reading source)
--
Wesley W. Terpstra