Python threading?

Trent Mick trentm at ActiveState.com
Fri Sep 20 21:26:54 EDT 2002


[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.


Trent

-- 
Trent Mick
TrentM at ActiveState.com




More information about the Python-list mailing list