title: Python multiprocessing process number
body: <p>I'm using Python multiprocessing pool module to create a pool of process and assign jobs to it.</p>
  
  <p>I have created 4 process and assigning 2 jobs but trying to display their process number but in the display I just see one process number "6952"...Shouldn't it print 2 process number</p>
  
  <pre><code>from multiprocessing import Pool
  from time import sleep
  
  def f(x):
      import os 
      print "process id = " , os.getpid()
      return x*x
  
  if __name__ == '__main__':
      pool = Pool(processes=4)              # start 4 worker processes
  
      result  =  pool.map_async(f, (11,))   #Start job 1 
      result1 =  pool.map_async(f, (10,))   #Start job 2
      print "result = ", result.get(timeout=1)  
      print "result1 = ", result1.get(timeout=1)
  </code></pre>
  
  <p>Result :--</p>
  
  <pre><code>result = process id =  6952
  process id =  6952
   [121]
  result1 =  [100]
  </code></pre>