title: Execute two different functions at the same time in python 3.4.1
body: <p>I have seen many examples about this topic but i cannot find any suitable answer for me.I need your help to know the trick about this.
  Suppose, i have two function funA() and funB(). They take exactly same arguments. And the functions return two separate outputs i.e a pandas series object. I want to execute the functions at the same time without GIL. 
  Here is my code sample:</p>
  
  <pre><code>from multiprocessing import Process
  from queue import Queue
  q1 = Queue()
  q2 = Queue()
  res1 = Process(target=funA,args=(a,b,c,q1))
  res1.start()
  res2 = Process(target=funB,args=(a,b,c,q2))
  res2.start()
  res1.join()
  res2.join()
  result1 = q1.get()
  result2 = q2.get()
  </code></pre>
  
  <p>The aforesaid code gives the following traceback:</p>
  
  <pre><code>File "C:\Python34\lib\multiprocessing\reduction.py", line 59, in dump
   ForkingPickler(file, protocol).dump(obj)
  _pickle.PicklingError: Can't pickle &lt;class '_thread.lock'&gt;: attribute lookup lock on _thread failed
  </code></pre>
  
  <p>I have gone through the following threads like <a href="http://sebastianraschka.com/Articles/2014_multiprocessing_intro.html" rel="nofollow noreferrer">http://sebastianraschka.com/Articles/2014_multiprocessing_intro.html</a>,
  <a href="https://stackoverflow.com/questions/22176780/concurrently-run-two-functions-that-take-parameters-and-return-lists">Concurrently run two functions that take parameters and return lists?</a>, <a href="https://stackoverflow.com/questions/2957116/make-2-functions-run-at-the-same-time">Make 2 functions run at the same time</a></p>
  
  <p>Please help me. Thanking you in advance.</p>