Or even kind of CPU-bound, as I discovered some months back... lets say you have a process that would normally be about 50% blocked on IO, and 50% of the time chewing on the data retrieved from that IO blocking. You run more than 2-3 of those on a multi-processor box, and you start getting contention.<div>
<br></div><div>desperately hoping some of the various things being tried in unladen-swallow pay off,</div><div><br></div><div>Alec<br><br><div class="gmail_quote">On Tue, Feb 2, 2010 at 2:39 PM, Asher Langton <span dir="ltr">&lt;<a href="mailto:langton2@llnl.gov">langton2@llnl.gov</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On Feb 2, 2010, at 2:14 PM, Aahz wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Tue, Feb 02, 2010, Tung Wai Yip wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
I think my experience tells me don&#39;t build multi-threaded applications in<br>
Python ;-)<br>
</blockquote>
<br>
Why?  I&#39;ve had about equal trouble with multi-processing and<br>
multi-threading.<br>
</blockquote>
<br></div>
If you haven&#39;t seen Dave Beazley&#39;s presentations on the Global Interpreter Lock, take a look at these:<br>
<br>
<a href="http://www.dabeaz.com/python/GIL.pdf" target="_blank">http://www.dabeaz.com/python/GIL.pdf</a><br>
<a href="http://www.dabeaz.com/python/NewGIL.pdf" target="_blank">http://www.dabeaz.com/python/NewGIL.pdf</a><br>
<br>
In short: multi-threading is really bad in Python 2.x when the threads are CPU-bound.<br><font color="#888888">
<br>
<br>
-Asher</font><div><div></div><div class="h5"><br>
_______________________________________________<br>
Baypiggies mailing list<br>
<a href="mailto:Baypiggies@python.org" target="_blank">Baypiggies@python.org</a><br>
To change your subscription options or unsubscribe:<br>
<a href="http://mail.python.org/mailman/listinfo/baypiggies" target="_blank">http://mail.python.org/mailman/listinfo/baypiggies</a><br>
</div></div></blockquote></div><br></div>