title: Python Using Multiprocessing
body: <p>I am trying to use multiprocessing in python 3.6. I have a <code>for loop</code>that runs a <code>method</code> with different arguments. Currently, it is running one at a time which is taking quite a bit of time so I am trying to use multiprocessing. Here is what I have:</p>
  
  <pre><code>def test(self):
      for key, value in dict.items():
          pool = Pool(processes=(cpu_count() - 1))
          pool.apply_async(self.thread_process, args=(key,value))
          pool.close()
          pool.join()
  
  
  def thread_process(self, key, value):
      # self.__init__()
      print("For", key)
  </code></pre>
  
  <p>I think what my code is using 3 processes to run one <code>method</code> but I would like to run 1 method per process but I don't know how this is done. I am using 4 cores btw.</p>