Top "Python-multiprocessing" questions

multiprocessing is a package that supports spawning processes using an API similar to the threading module in python programming language.

Python multiprocessing PicklingError: Can't pickle <type 'function'>

I am sorry that I can't reproduce the error with a simpler example, and my code is too complicated to …

python multiprocessing pickle python-multiprocessing
How can I recover the return value of a function passed to multiprocessing.Process?

In the example code below, I'd like to recover the return value of the function worker. How can I go …

python python-multiprocessing
Is it possible to run function in a subprocess without threading or writing a separate file/script.

import subprocess def my_function(x): return x + 100 output = subprocess.Popen(my_function, 1) #I would like to pass the function …

python function subprocess popen python-multiprocessing
multiprocessing.Pool: What's the difference between map_async and imap?

I'm trying to learn how to use Python's multiprocessing package, but I don't understand the difference between map_async and …

python multiprocessing python-multiprocessing
When should we call multiprocessing.Pool.join?

I am using 'multiprocess.Pool.imap_unordered' as following from multiprocessing import Pool pool = Pool() for mapped_result in pool.…

python python-multiprocessing
Shared variable in python's multiprocessing

First question is what is the difference between Value and Manager().Value? Second, is it possible to share integer variable …

python multiprocessing python-multiprocessing
how to to terminate process using python's multiprocessing

I have some code that needs to run against several other systems that may hang or have problems not under …

python multiprocessing python-multiprocessing
multiprocessing: map vs map_async

What's the difference between using map and map_async? Are they not running the same function after distributing the items …

python python-multiprocessing
Sharing a result queue among several processes

The documentation for the multiprocessing module shows how to pass a queue to a process started with multiprocessing.Process. But …

python parallel-processing queue multiprocessing python-multiprocessing
What's the difference between ThreadPool vs Pool in the multiprocessing module?

Whats the difference between ThreadPool and Pool in multiprocessing module. When I try my code out, this is the main …

python python-3.x multiprocessing threadpool python-multiprocessing