title: Multiprocessing in Python on Windows
body: <p>I am trying out the examples listed in the python docs <a href="http://docs.python.org/library/multiprocessing.html" rel="nofollow">http://docs.python.org/library/multiprocessing.html</a>
  particularly these two on Windows:</p>
  
  <p>1)</p>
  
  <pre><code>from multiprocessing import Process
  
  def f(name):
      print 'hello', name
  
  if __name__ == '__main__':
      p = Process(target=f, args=('bob',))
      p.start()
      p.join()
  </code></pre>
  
  <p>2)</p>
  
  <pre><code>from multiprocessing import Process
  import os
  
  def info(title):
      print title
      print 'module name:', __name__
      print 'parent process:', os.getppid()
      print 'process id:', os.getpid()
  
  def f(name):
      info('function f')
      print 'hello', name
  
  if __name__ == '__main__':
      info('main line')
      p = Process(target=f, args=('bob',))
      p.start()
      p.join()
  </code></pre>
  
  <p>Here is the problem: I don't get any output from the child process. It works on Linux though. What is going on?</p>