[Tutor] No speedup in

Thanos Panousis pthanos at gmail.com
Sat Apr 21 19:27:15 CEST 2007


You cannot get around the GIL in python.

Maybe you could try passing chunks of your matrix that are copies of
the submatrises you want to multiply using threads. This way it will
be different objects, thus no GIL....I could be awfully wrong though,
I am a beginner in threads as well.

On 4/21/07, FAN Ying Wai <danfan1981 at yahoo.com> wrote:
> Hi,
> I am using Python Thread library for my parallel
> processing course
> project. I am doing matrix convolution on a
> multi-processor machine. I
> just found out that no speed-up is obtained with
> threading. It is
> probably because of something called GIL in Python.
> How can I get around
> that GIL and get speed-up?
> Thanks in advance.
> Daniel
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
>


More information about the Tutor mailing list