Python threading?

Armin Steinhoff a-steinhoff at web.de
Sat Sep 21 06:48:06 EDT 2002


Trent Mick <trentm at ActiveState.com> wrote in message news:<mailman.1032571709.25544.python-list at python.org>...
> [Robert Oschler wrote]
> > How can I tell if the version of Python I am running is thread-enabled?
> 
> Run Lib/test/test_thread.py with your Python build. If you are on any
> common platform then Python, unless specifically crippled, is
> thread-enabled.
> 
> > Also, what is a reasonable number of threads to expect to be able to run
> > before context switching overhead becomes a problem (I'm using a PIII 500
> > Mhz with 512MB ram if that helps).
> 
> I have no experience putting that many threads to use.

Check out Stackless Python which supports micro threads (very small
context switching overhead ..)

Armin

> 
> 
> Trent



More information about the Python-list mailing list