maximum number of threads?

Aahz aahz at pythoncraft.com
Wed Sep 4 17:42:16 EDT 2002


In article <3d75b761$0$26216$afc38c87 at news.optusnet.com.au>,
Steven <sadams123 at optushome.com.au> wrote:
>
>Is there a maximum number of threads that can be running 'simultaneously' in
>Python 2.2 on Win2k/XP?
>
>I'm choosing between a select or threads based design, threads would be
>easier, but wasn't sure whether I'll exceed some maximum number of threads.
>
>Basically its a voice server, or rather a voice to text server, so
>information produced might be sporadic, or fairly continuous. An arbitrary
>number of subscribers subscribe to the system and get voice information sent
>out as it comes in (and if it matches the language the subscriber wants),
>threads make it simple since each subscription could be separate.
>
>Is there a maximum number of threads, and any opinions on whether the GIL
>and context switching in the interpreter is liable to make it unworkable (or
>a case of 'build and see')?

I'd want the actual voice-to-text processing to be in some kind of
library that releases the GIL.  Other than that, a modern computer
should easily support 20-50 threads, possibly as many as 200.
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

Project Vote Smart: http://www.vote-smart.org/



More information about the Python-list mailing list