title: Appending to the same list from different processes using multiprocessing
body: <p>I need to append objects  to one list <code>L</code> from different processes using multiprocessing , but it returns empty list.
  How can I let many processes append to list <code>L</code> using multiprocessing?</p>
  <pre><code>#!/usr/bin/python
  from multiprocessing import Process
  
  L=[]
  def dothing(i,j):
      L.append(&quot;anything&quot;)
      print i
  
  if __name__ == &quot;__main__&quot;:
      processes=[]
      for i in range(5):
          p=Process(target=dothing,args=(i,None))
          p.start()
          processes.append(p)
      for p in processes:
          p.join()
  
  print L
  </code></pre>