threading a 10 lines out of a file

alex goretoy aleksandr.goretoy at
Mon Jan 5 22:05:36 CET 2009


Are you referring to the endless GIL debate? I googled about what you said.
I'll look into it here shortly. I just know one thing, is that I need a
comparison for regular code and something about how GIL and threading fit in
the picture. It makes it easier for me to understand what is going on. Can
you post an example? something I can use to truely thread a for loop? The
example previously posted show that it works 10 times faster than original
for loop. My current program runs for 4.5 hours. I think it will be good to
minimize that by 10 times. But if It can do more/faster, than that would be
great. TIA for all your help.

-Alex Goretoy

On Mon, Jan 5, 2009 at 6:13 PM, Steve Holden <steve at> wrote:

> re, however, that the CPython implementation won't net you any
> benefit if all threads are CPU-bound, since due to something called the
> GIL (global interpreter lock) no two threads will run concurrently.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list