threading a 10 lines out of a file

alex goretoy aleksandr.goretoy at gmail.com
Mon Jan 5 16:05:36 EST 2009


Steve,

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
http://www.alexgoretoy.com



On Mon, Jan 5, 2009 at 6:13 PM, Steve Holden <steve at holdenweb.com> 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: <http://mail.python.org/pipermail/python-list/attachments/20090105/f89fa611/attachment-0001.html>


More information about the Python-list mailing list