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.

作者 mouse07410
收信人 Ryan May, barry, davin, gregory.p.smith, josh.r, kapilt, lukasz.langa, mark.dickinson, miss-islington, mouse07410, ned.deily, pablogsal, pitrou, ronaldoussoren, tdsmith, vstinner
日期 2020-03-29.15:34:58
SpamBayes Score -1.0
Marked as misclassified
Message-id <1585496098.39.0.0229469686974.issue33725@roundup.psfhosted.org>
In-reply-to
内容
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`.
历史
日期 用户 动作 参数
2020-03-29 15:34:58mouse07410修改recipients: + 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:58mouse07410修改messageid: <1585496098.39.0.0229469686974.issue33725@roundup.psfhosted.org>
2020-03-29 15:34:58mouse07410链接issue33725 messages
2020-03-29 15:34:58mouse07410创建