lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


>Obviously, a small stack may produce other
>problems.

IIRC Windows will extend the stack of any thread 
(there is nothing special about threads on Windows; 
they're effectively the native task scheduling unit)
up to the max stack size set in the EXE header, so
starting with a smaller size for all threads shouldn't
be a huge problem. The default max stack size is
IIRC 'all available VM'.

You can use the hackette I posted this a.m. to avoid
the realloc and thus to get a detectable error from
task.create before any trouble can happen.