On 5/9/07, <b class="gmail_sendername">Bernhard Mulder</b> <<a href="mailto:bwmulder@pacbell.net">bwmulder@pacbell.net</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>Is there some other recommended way to deal with this issue?</div></blockquote><div><br>This is probably not the answer you're looking for, but generally the advice I've seen is to simply not use threads. For instance, use asynchronous single-threaded alternatives like asyncore, or a solution that involves coroutines and microthreads like Stackless/PyPy. I'd love to do this kind of thing myself, but the problem I've run into is that so much legacy or third-party code out there is already thread-based that integration becomes very difficult. If you don't have to deal too much with legacy or third-party code, though, this may be a viable solution.
<br><br>- Atul<br><br></div></div>