title: In python when threads die?
body: <p>I have a service that spawns threads.
  And i may have a leak of resources in a code i am using.<br>
  I have similar code in python that uses threads</p>
  
  <pre><code>import threading
  
  class Worker(threading.Thread):
      def __init__(self):
          threading.Thread.__init__(self)
      def run(self):
          # now i am using django orm to make a query
          dataList =Mydata.objects.filter(date__isnull = True )[:chunkSize]
          print '%s - DB worker finished reading %s entrys' % (datetime.now(),len(dataList))
  
  while True:
      myWorker = Worker()
      mwWorker.start()
      while myWorker.isalive():  # wait for worker to finish 
          do_other_work()
  </code></pre>
  
  <p>is it ok ?<br>
  will the threads die when they finish executing the run method ?<br>
  do i cause a leak in resources ? </p>