This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mouse07410
Recipients Ryan May, barry, davin, gregory.p.smith, josh.r, kapilt, lukasz.langa, mark.dickinson, miss-islington, mouse07410, ned.deily, pablogsal, pitrou, ronaldoussoren, tdsmith, vstinner
Date 2020-03-29.15:34:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1585496098.39.0.0229469686974.issue33725@roundup.psfhosted.org>
In-reply-to
Content
Also, adding `p.join()` immediately after `p.start()` in my sample code showed this timing:
```
$ time python3.8 multi1.py 
worker 0 done, got 100 numbers
worker 1 done, got 0 numbers
worker 2 done, got 0 numbers
worker 3 done, got 0 numbers

real	0m2.342s
user	0m0.227s
sys	0m0.111s
$ 
```

Setting instead start to `fork` showed this timing:
```
$ time python3.8 multi1.py 
worker 2 done, got 25 numbers
worker 0 done, got 25 numbers
worker 1 done, got 25 numbers
worker 3 done, got 25 numbers

real	0m0.537s
user	0m0.064s
sys	0m0.040s
$ 
```

The proposed fix is roughly four times slower, compared to reverting start to `fork`.
History
Date User Action Args
2020-03-29 15:34:58mouse07410setrecipients: + mouse07410, barry, gregory.p.smith, ronaldoussoren, mark.dickinson, pitrou, vstinner, ned.deily, lukasz.langa, josh.r, tdsmith, davin, Ryan May, pablogsal, miss-islington, kapilt
2020-03-29 15:34:58mouse07410setmessageid: <1585496098.39.0.0229469686974.issue33725@roundup.psfhosted.org>
2020-03-29 15:34:58mouse07410linkissue33725 messages
2020-03-29 15:34:58mouse07410create