开发者

working example of multiprocessing.Queue

开发者 https://www.devze.com 2023-02-12 11:37 出处:网络
I am looking for a working example of multiprocessing.Queue after being pointed to it from this question: Python utilizing multiple processors

I am looking for a working example of multiprocessing.Queue after being pointed to it from this question: Python utilizing multiple processors

I came across this, but it only s开发者_Go百科eems to use one of my 12 processors even when I change num_processes=12. I also changed num_jobs = 200000 so that it wouldn't complete so fast.

Can someone tell me what's wrong with that example or point me to one that works?


There are examples in the Python docs.

Do these examples work? If not, it may be that the problem itself is not Python, but something else instead.

0

精彩评论

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