title: Executing multiple functions simultaneously
body: <p>I'm trying to run two functions simultaneously in Python. I have tried the below code which uses <code>multiprocessing</code> but when I execute the code, the second function starts only after the first is done.</p>
  
  <pre><code>from multiprocessing import Process
  def func1:
       #does something
  
  def func2:
       #does something
  
  if __name__=='__main__':
       p1 = Process(target = func1)
       p1.start()
       p2 = Process(target = func2)
       p2.start()
  </code></pre>