Re: About threads in python

2011-04-25 Thread Hans Georg Schaathun
On Fri, 22 Apr 2011 12:19:56 -0700 (PDT), sturlamolden wrote: : To optimise computational code, notice that Python itself : gives you a 200x performance penalty. That is much more : important than not using all 4 cores on a quadcore processor. : In this case, start by identifying bottlenecks

Re: About threads in python

2011-04-22 Thread sturlamolden
On Apr 21, 3:19 pm, dutche wrote: > My question is about the efficiency of threads in python, does anybody > has something to share? Never mind all the FUD about the GIL. Most of it is ill-informed and plain wrong. The GIL prevents you from doing one thing, which is parallel compute-bound code

Re: About threads in python

2011-04-21 Thread Dan Stromberg
On Thu, Apr 21, 2011 at 6:19 AM, dutche wrote: > Hi folks, how are ya? > > Here's the thing...I had to make a program with threads and after > finished, I found some posts and articles in Google about Python and > threads, raising the question about if it really implements thread > programming or

Re: About threads in python

2011-04-21 Thread Stefan Behnel
dutche, 21.04.2011 15:19: Here's the thing...I had to make a program with threads and after finished, I found some posts and articles in Google about Python and threads, raising the question about if it really implements thread programming or not, because of GIL and the way Python needs to lock s