Z
Z
zdr2019-04-30 06:27:11
Python
zdr, 2019-04-30 06:27:11

Does it make sense to use Pool on a single core processor?

Tell me, does it make sense to use multiprocessing.pool on a virtual machine with 1 CPU core? On my 4th core process, I exposed map(4) and map(40) there is a difference. Although they write that it is more optimal to use the number of "processes" = the number of cores.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
F
Fixid, 2019-04-30
@Fixid

It only makes sense if each thread consumes almost no resources and you want to utilize the entire CPU

L
lega, 2019-04-30
@lega

Does it make sense to use Pool on a single core processor?
Yes, processes can be added until the CPU consumes less than 100% (or until it hits io / network / disk)

N
nrgian, 2019-04-30
@nrgian

You never know what they write about the spherical in a vacuum.
Take your specific software.
You freeze on it.
Believe your eyes.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question