I am new to python and threading. I am trying to run multiple threads at a time. Here is my basic code :
  import threading
  import time
  threads = []
  print "hello"
  class myThread(threading.Thread):
          def __init__(self,i):
                  threading.Thread.__init__(self)
                  print "i = ",i
                  for j in range(0,i):
                          print "j = ",j
                          time.sleep(5)
  for i in range(1,4):
          thread = myThread(i)
          thread.start()
While 1 thread is waiting for time.sleep(5) i want another thread to start. In short, all the threads should run parallel. 
 
     
     
     
    