Python thread

golgo__13 at my-deja.com golgo__13 at my-deja.com
Tue Jan 30 13:27:45 EST 2001


Hi,

Python thread document sucks!  It all seems to just handwave the
issue by saying it's close to Java thread model, but since I do
not know it, it's not very useful.

Anyway, I need to do something very simple, and I hope someone can
help me.  Basically I need to launch four threads and combine the
result.  One is CPU intensive and the other threeo are IO
intensive and it needs no communication between.  Right now it's
done in linear way like so:
a=funcA()
b=funcB()
c=funcC()
d=funcD()
e=a+b+c+d

How can I get funcA(),funcB(),funcC() and funcD() started all at the
same time?

I thank you in advance!


Sent via Deja.com
http://www.deja.com/



More information about the Python-list mailing list