How to sum Threads in python
<p>I need help on how i can sum all the threads.to get sum of thread one to three all together..The parallel program should use all processors in host computer</p>

<pre><code>import threading
import time
from datetime import datetime

start_time = datetime.now()   
def sum_number():   

summ = 100
for num in range (1, 100):
  summ = summ + num
  num -= 1
 print ("SUM IS", summ)


def sum_number1():  

  summr = 200
  for num in range (101,200):
    summr = summr + num
    num -= 1
    print ("SUM IS", summr)



 def sum_number2():
  summy = 300
  for num in range (201, 300):
    summy = summy + num
    num -= 1
    print ("SUM IS", summy)


#take time t2
#end_time =datetime.now()
#print t2 -t1

#print('Time taken : {}'. format(end_time-start_time))
if __name__=="__main__":

  #sum_number()
  #sum_number1()
  #sum_number2()
  #sum_number3()

  t1=threading.Thread(target=sum_number)

  t1.start()
  time.sleep(5)

  t2=threading.Thread(target=sum_number1)

  t2.start()
  time.sleep(10)

  t3=threading.Thread(target=sum_number2)

  t3.start()
  time.sleep(15)



  #end_time =datetime.now()
</code></pre>

<p>I need help on how i can sum all the threads.to get sum of thread one to three all together..The parallel program should use all processors in host computer</p>