[Python-3000] the future of the GIL

Talin talin at acm.org
Sun May 6 23:19:01 CEST 2007


Giovanni Bajo wrote:
> On 05/05/2007 15.29, tomer filiba wrote:
> 
>> however, running a threaded python script over an 8-core
>> machine, where you can utilize at most 12.5% of the horsepower,
>> seems like too large a sacrifice to me.
> 
> You seem to believe that the only way to parallelize your programs is to use 
> threads. IMHO, threads is just the most common and absolutely the worst, under 
> many points of views.

I think it's a case of wanting the most general mechanism for doing 
parallel computation. Any algorithm that can be efficiently parallelized 
using processes can also be done with threads (assuming that the 
infrastructure for threading is there), but the converse is not true.

-- Talin


More information about the Python-3000 mailing list