import thread
import time

def print_time(threadName,delay):
    count = 0
    while count < 5:
        time.sleep(delay)
        count+=1
        print "%s" %(threadName)
try:
    thread.start_new_thread(print_time,("Thread1",2))
    thread.start_new_thread(print_time,("Thread2",4))
except:
    print "Err"

while 1:
    pass

b95af6ecee9bfcb6f7e25830a167288c9d4fedba
import thread
import time

def print_time(threadName,delay):
    count = 0
    while count < 5:
        time.sleep(delay)
        count+=1
        print "%s" %(threadName)
try:
    thread.start_new_thread(print_time,("Thread1",2))
    thread.start_new_thread(print_time,("Thread2",4))
except:
    print "Err"

while 1:
    pass
