spacepaste

  1.  
  2. import thread
  3. def sum_a_bit(i, total):
  4. for j in range(i, i + 10000):
  5. total += j
  6. return total
  7. def f():
  8. total = 0
  9. for i in range(0, 15000000, 10000):
  10. total = sum_a_bit(i, total)
  11. print total
  12. for j in range(2):
  13. thread.start_new_thread(f, ())
  14. raw_input()
  15.