import thread def f(): total = 0 for i in range(15000000): total += i print total for j in range(2): thread.start_new_thread(f, ()) raw_input()