Why python multiprocessing module cause CPU completely run out?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/1923706/multiprocessing-launching-too-many-instances-of-python-vm">Multiprocessing launching too many instances of Python VM</a>  </p>
</blockquote>



<p>I am trying python 2.6 multiprocessing module with this simple code snippet.</p>

<pre><code>from multiprocessing import Pool
p = Pool(5)
def f(x):
    return x*x

print p.map(f, [1,2,3])
</code></pre>

<p>But this code cause my OS stopped responding.  It looks like the CPU is too busy.
What's wrong with my code?</p>

<p>BTW : it seems that multiprocessing module is a bit dangerous.  I had to restart my computer.</p>
