posted on: 2009-08-24 07:05:14
This is a quick example of how to avoid creating thousands of processes using python and the multiprocessing module.
>The most important point here is multiprocessing creates new processes, and IMPORTS the module you are using so...first off, as if you don't already, you want to put any multiprocessing calls are only performed inside of a,
if __name__=="__main__": print "do stuff here"
This will prevent a fork bomb. I found this after trying to write a quick script that uses the map function.
Comments
create comment?