title: What happens with a thread if it's in a infinite while loop python
body: <p>I found this article about queue's in python: <a href="http://www.blog.pythonlibrary.org/2012/08/01/python-concurrency-an-example-of-a-queue/" rel="nofollow">http://www.blog.pythonlibrary.org/2012/08/01/python-concurrency-an-example-of-a-queue/</a></p>
  
  <p>It works fine but I have question about it. In the run method of the thread we see:</p>
  
  <pre><code>def run(self):
      while True:
          # gets the url from the queue
          url = self.queue.get()
  
          # download the file
          self.download_file(url)
  
          # send a signal to the queue that the job is done
          self.queue.task_done()
  </code></pre>
  
  <p>The thread is in a infinite while-loop without calling break. What happens to this thread when the program ends?</p>