title: How could a function look like, that can add an other function to a list of functions that run parallel in python?
body: <pre><code>def update():
     while True:
         loadData()
  
  def main():
     doStuff()
     addToParallelFunctions(update)
     doOtherStuff()
  
  if __name__ == '__main__':
     addToParallelFunctions(main)
  </code></pre>
  
  <p>How could that <code>addToParallelFunctions</code> function look like, so that update runs parallel to <code>main</code> and that I can add other functions to run also parallel to the <code>main</code>?</p>
  
  <p>I've tried that, but it paused the main function and ran the other function until she was finished.</p>
  
  <pre><code>from multiprocessing import Process
  
  def addProcess(*funcs):
      for func in funcs:
         Process(target=func).start()
  </code></pre>