A working example of multiprocessing.

I am looking for a working example of multiprocessing. After he turned to this question from this question: Python using multiple processors

I came across this , but it seems that only one of my 12 processors is using, even when I change num_processes=12 . I also changed num_jobs = 200000 so that it does not end so quickly.

Can someone tell me what is wrong with this example, or point me to the one that works?

+4
source share
1 answer

There are examples in Python docs .

Do these examples work? If not, maybe the problem itself is not Python, but something else.

+2
source

Source: https://habr.com/ru/post/1340839/


All Articles