title: Why threads created with `_thread.start_new_thread` don't print anything?
body: <p>I found this simple code at <a href="https://code.google.com/p/pyloadtools/wiki/CodeTutorialMultiThreading" rel="nofollow">https://code.google.com/p/pyloadtools/wiki/CodeTutorialMultiThreading</a></p>
  
  <pre><code>import _thread
  
  def hello(num):
      print('hello from thread %s\n' % num)
  
  _thread.start_new_thread(hello, (0,))
  _thread.start_new_thread(hello, (1,))
  _thread.start_new_thread(hello, (2,))
  </code></pre>
  
  <p>But when I run this, it works on IDLE, but not on eclipse which uses PyDev.  Any idea how to fix it?</p>
  
  <p><strong>Note</strong>:  I think the main program terminates before the threads run. The threads dont get enough time to run I guess. How do I fix it? May be should I use join?</p>