Thread Stack Size

Hughes, Chad O chad.hughes at pnl.gov
Wed Jun 1 18:35:27 EDT 2005


I am using the threading module to create a great deal of threads. Is
there any way to set the thread stack size?  It looks like each thread
is being given a default stack size of 1MB.  I have looked all over and
I cannot find a way to shrink the stack to a few KB.  When I try to
create a large number of threads (say 1000 of them) I run into trouble,
due to the fact that I have one Gig of memory.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20050601/8ad4edf6/attachment.html>


More information about the Python-list mailing list