[Tutor] threads
Brendon
bren@europe.nl.com
Thu, 5 Jul 2001 14:00:40 +0200
there seems to remarkably little documentation on this subject, so i'll ask
here. how do you thread a program? i.e., to keep it very basic a program.
def thread_one():
r1 = 4+5
#pass r1 to thread two
def thread_two():
r2 = 3+4
r3 = r1 + r2
#call both threads simultaneously
granted, this is completely useless, but i just need to get the idea :)
--
"if we live by an "eye for an eye and a tooth for a tooth"...before long,
the whole world will be blind and toothless."
--Tevye, Fiddler on the Roof