Re: overhead of starting threads

2005-05-23 Thread Will McGugan
Simon Percivall wrote: > How much you gain by starting threads is also determined by what you're > doing in those threads. Remember (or learn): In CPython only one thread > at a time can execute python code, so depending on your task threading > might gain you little. If you're doing I/O or calling

Re: overhead of starting threads

2005-05-23 Thread Simon Percivall
How much you gain by starting threads is also determined by what you're doing in those threads. Remember (or learn): In CPython only one thread at a time can execute python code, so depending on your task threading might gain you little. If you're doing I/O or calling functions written in C (and if

overhead of starting threads

2005-05-23 Thread Will McGugan
Hi, What is the overhead of starting threads in Python? Currently my app starts around 20 threads per second, but I'm considering creating a pool of a fixed number of threads and keeping them fed with data. But only if it would give me a noticeable performance boost. Has anyone got an