title: Only first function is called when 2 functions are called on separate threads from main()
body: <p>I am trying to run two functions parallelly, so instead of sharing that large code I have written a simpler version of that as shown below</p>
  
  <pre><code>import thread
  
  
  def function1():
      print "in function 1"
  
  def function2():
      print "in function 2"
  
  
  # Create two threads as follows
  
  def main():
      try:
         thread.start_new_thread( function1())
         thread.start_new_thread( function2())
  
      except Exception:
         print Exception.message
  
      while 1:
          pass
  
  
  if __name__ == '__main__':
      main()
  </code></pre>
  
  <p>I am getting following output</p>
  
  <pre><code>in function 1
  &lt;attribute 'message' of 'exceptions.BaseException' objects&gt;
  </code></pre>
  
  <p>any reasons why function # 2 is not working</p>