Problem with threads in python????????

Manikandan R mani.agape at
Mon Feb 25 16:08:49 CET 2008


          Is it possible to share a single variable between multiple
threads. For eg:

Class A:

       def run():

def fun():
 ........ assume some arithmatic operation is going on according to the
input given and each fun will *give different output*

count = 10
while count:
         call the class which will call the thread,

now call   list.join()

Now 10 Thread will be running and each thread will have there individual

       Here is the problem now i want the sum of output of all the function.
How can i do this ??? Can any one give me some idea. With example. Quite
urgent help me please...

Thank's and Regard's,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list