On 5/9/07, <b class="gmail_sendername">Bernhard Mulder</b> &lt;<a href="mailto:bwmulder@pacbell.net">bwmulder@pacbell.net</a>&gt; 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&#39;re looking for, but generally the advice I&#39;ve seen is to simply not use threads.&nbsp; For instance, use asynchronous single-threaded alternatives like asyncore, or a solution that involves coroutines and microthreads like Stackless/PyPy.&nbsp; I&#39;d love to do this kind of thing myself, but the problem I&#39;ve run into is that so much legacy or third-party code out there is already thread-based that integration becomes very difficult.&nbsp; If you don&#39;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>