Top "Multiprocessing" questions

Multiprocessing is the use of two or more central processing units (CPUs) within a single computer system.

How to share data between Python processes?

I'm using multiprocessing to create a sub-process to my Python app. I would like to share data between my parent …

python python-2.7 multiprocessing python-multiprocessing
Understanding Multiprocessing: Shared Memory Management, Locks and Queues in Python

Multiprocessing is a powerful tool in python, and I want to understand it more in depth. I want to know …

python locking multiprocessing python-multiprocessing
Python multiprocessing: understanding logic behind `chunksize`

What factors determine an optimal chunksize argument to methods like multiprocessing.Pool.map()? The .map() method seems to use an …

python python-3.x parallel-processing multiprocessing python-multiprocessing
Python: multiprocessing.map: If one process raises an exception, why aren't other processes' finally blocks called?

My understanding is that finally clauses must *always* be executed if the try has been entered. import random from multiprocessing …

python multithreading multiprocessing try-catch-finally
Python multiprocess profiling

I'm struggling to figure out how to profile a simple multiprocess python script import multiprocessing import cProfile import time def …

python multiprocessing cprofile
Python Multiprocessing - How to pass kwargs to function?

How do I pass a dictionary to a function with Python's Multiprocessing? The Documentation: https://docs.python.org/3.4/library/multiprocessing.…

python multiprocessing keyword-argument
python pool apply_async and map_async do not block on full queue

I am fairly new to python. I am using the multiprocessing module for reading lines of text on stdin, converting …

python design-patterns queue multiprocessing python-multiprocessing
Python 3: does Pool keep the original order of data passed to map?

I have written a little script to distribute workload between 4 threads and to test whether the results stay ordered (in …

python multithreading python-3.x multiprocessing threadpool
multiprocessing - execute external command and wait before proceeding

I am using Linux. I have an external executable called "combine" and a loop of 20 iterations. Per each iteration, "combine" …

python multiprocessing external-process
How to share a string amongst multiple processes using Managers() in Python?

I need to read strings written by multiprocessing.Process instances from the main process. I already use Managers and queues …

python multiprocessing shared-memory shared-state