Numbers of active threads
Peter Hansen
peter at engcorp.com
Sat May 11 18:08:16 EDT 2002
A wrote:
>
> Hi,
> I use threading module and I need to control numbers of active
> threads. Can you please give me an example how to do that.
"Control" could mean many things, so I'll just point you to
threading.activeCount() which returns the number of threads
active (that were started with that module).
You should be able to use this information to control the
number of threads in an appropriate way for your application.
-Peter
More information about the Python-list
mailing list