开发者

how to run parallel job in python

开发者 https://www.devze.com 2022-12-11 00:43 出处:网络
I am doing a data mining project in Python, and during the experiment phase I have to run many experiments at the same time. How could I create n processes, so that each process is dedicated to an exp

I am doing a data mining project in Python, and during the experiment phase I have to run many experiments at the same time. How could I create n processes, so that each process is dedicated to an experiment开发者_JAVA技巧? Which module I should use?


Have a look at Does python support multiprocessor/multicore programming?

Then look at http://wiki.python.org/moin/ParallelProcessing for more options

but generally python multiprocessing(http://docs.python.org/library/multiprocessing.html) module will be enough


Have a look at the multiprocessing module.

0

精彩评论

暂无评论...
验证码 换一张
取 消