Ask Your Question
2

Is it necessary to create a new multiprocessing.pool() process for every one that ceases to exist?

asked 2023-05-26 19:24:50 +0000

plato gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2023-05-26 19:41:01 +0000

ladyg gravatar image

No, it is not necessary to create a new multiprocessing.pool() process for every one that ceases to exist. When a process in the pool ceases to exist, the pool automatically replaces it with a new process, so the number of processes in the pool remains constant. However, if the pool is large and has a high turnover rate, creating a new pool for every process that ceases to exist may be more efficient in terms of resource management.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-05-26 19:24:50 +0000

Seen: 10 times

Last updated: May 26 '23