Jérôme M. Berger wrote:
Actually, on Linux, the stack for the main thread grows dynamically
until it reaches the allowed size.
That's exactly what I said. It didn't occur to me beforehand that you could preallocate the stack, but now that I think about it, nobody would be happy if Linux preallocated 8MB for every process.
Thanks for the information on threads, though.
