title: How do I retrieve output from Multiprocessing in Python?
body: <p>So, I'm trying to speed up one routine by using the Multiprocessing module in Python. I want to be able to read several .csv files by splitting the job among several cores, for that I have:</p>
  
  <pre><code>def csvreader(string):
  
    from numpy import genfromtxt;
  
    time,signal=np.genfromtxt(string, delimiter=',',unpack="true") 
    return time,signal
  </code></pre>
  
  <p>Then I call this function by saying:</p>
  
  <pre><code>if __name__ == '__main__':
       for i in range(0,2):
          p = multiprocessing.Process(target=CSVReader.csvreader, args=(string_array[i],))
          p.start()
  </code></pre>
  
  <p>The thing is that this doesn't store any output. I have read all the forums online and seen that there might be a way with multiprocessing.queue but I don't understand it quite well.
  Is there any simple and straightforward method?</p>