What's the cost of using hundreds of threads?

Jarek Zgoda jzgoda at gazeta.usun.pl
Tue Mar 1 15:21:56 EST 2005


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.

-- 
Jarek Zgoda
http://jpa.berlios.de/ | http://www.zgodowie.org/



More information about the Python-list mailing list