阅读背景:

我正在做什么的Python多处理过程或池?

来源:互联网 

I'm new to multiprocessing in Python and trying to figure out if I should use Pool or Process for calling two functions async. The two functions I have make curl calls and parse the information into a 2 separate lists. Depending on the internet connection, each function could take about 4 seconds each. I realize that the bottleneck is in the ISP connection and multiprocessing won't speed it up much, but it would be nice to have them both kick off async. Plus, this is a great learning experience for me to get into python's multi-processing because I will be using it more later. I'm new to multiprocessing in Python and trying




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: