parallel program in python using Threads
<p>Generating the sum from adding integer numbers successively up to n where n =  2000   given by the following formula: n(n+1)/2
so far i have don it in serial.I need help on how to make it compute in parallel such that it adaptively make use of all the available processors/cores on the host computer.</p>

<pre><code>#!/usr/bin/env python3
from datetime import datetime
n=1
v=0
start_time = datetime.now() 
while n&lt;=10:

 (n*(n+1)/2)
 b=(n*(n+1)/2)
 n = n+1

end_time =datetime.now()

print (b)

 print('Time taken : {}'. format(end_time-start_time))
</code></pre>