I have this code:
def runner1(): os.system('python something.py') ..... and so on thread_run_1 = threading.Thread(target=runner1, args=[]) .... i =0 j = 0 while i < 2: # i want to run continuously, dont want to use cron jobs print "while 1" #i made it simpler, but here are a lot of checks while j == 0: print "while 2" thread_run_1.start() ...... time.sleep(3600) break print "back to while 1" i+=1 print i It's possible to avoid this error: RuntimeError: threads can only be started once?