[Tutor] No speedup in
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:
> 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.
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> Tutor maillist - Tutor at python.org
More information about the Tutor