◐ Shell
clean mode source ↗

Message 131999 - Python tracker

Le jeudi 24 mars 2011 à 16:16 +0000, STINNER Victor a écrit :
> STINNER Victor <victor.stinner@haypocalc.com> added the comment:
> 
> In the following example, if I kill the child process, the parent is immediatly done:
> ---
> from os import getpid
> from time import sleep
> from multiprocessing import Process

concurrent.futures uses a multiprocessing.Queue to get the function
results back. You should use a similar setup in your script.