Jarek Zgoda wrote:
Przemysław Różycki napisał(a):

- Is there any 'upper boundary' that limits the number of threads? (is it python / OS related)
- Is that the sign of 'clumsy programming' - i.e. Is creating so many threads a bad habit? (I must say that it simplified the solution of my problem very much).


I've read somewhere (I cann't recall where, though, was it MSDN?) that Windows is not well suited to run more than 32 threads per process. Most of the code I saw doesn't spawn more threads than a half of this.

This is apocryphal. Do you have any hard evidence for this assertion?

Apache, for example, can easily spawn more threads under Windows, and I've written code that uses 200 threads with excellent performance. Things seem to slow down around the 2,000 mark for some reason I'm not familiar with.

regards
 Steve
--
Meet the Python developers and your c.l.py favorites March 23-25
Come to PyCon DC 2005                      http://www.pycon.org/
Steve Holden                           http://www.holdenweb.com/
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to