I have this code:
import thread def print_out(m1, m2): print m1 print m2 print \"\\n\" for num in range(0, 10): thread.start_new_thread(print_o
Using thread module, you need to have a main thread running, by adding a while loop below
import thread def print_out(m1, m2): print m1 print m2 print "\n" for num in range(0, 10): thread.start_new_thread(print_out, ('a', 'b'))` while(1): pass