Paul Sijben a écrit : > Gabriel Genellina wrote: >> Simply you can't, as you can't have 10000 open files at once. Computer >> resources are not infinite. > > sure but *how* fast they run out is the issue here > >> Do you really need so many threads? > > I might be able to do with a few less but I still need many. > > I have done a quick test. > > on WinXP I can create 1030 threads > on Fedora Core 6 I can only create 301 (both python2.4 and 2.5) > > now the 301 is rather low I'd say.
This is a system configurable limit (up to a maximum). See ulimit man pages. test ulimit -a to see what are the current limits, and try with ulimit -u 2000 to modify the maximum number of user process (AFAIK each thread use a process entry on Linux) > > Paul > -- http://mail.python.org/mailman/listinfo/python-list