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.

classification
Title: Multiprocessing docs don't describe thread-safety
Type: Stage:
Components: Documentation Versions:
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: docs@python Nosy List: alan.briolat, bjs, docs@python, iritkatriel
Priority: normal Keywords:

Created on 2020-05-29 13:25 by bjs, last changed 2022-04-11 14:59 by admin.

Messages (3)
msg370310 - (view) Author: Ben (bjs) * Date: 2020-05-29 13:25
The Multiprocessing docs specifically say that Queue is process- and thread- safe: https://docs.python.org/3/library/multiprocessing.html#exchanging-objects-between-processes.

But this information is not given for the various synchronisation primitives and such (Lock, Semaphore, Event, etc)

Are they thread-safe?  Should the docs say whether they are or are not?
msg375103 - (view) Author: Irit Katriel (iritkatriel) * (Python committer) Date: 2020-08-10 08:45
Here's an example where such documentation may have helped: https://bugs.python.org/issue40860
msg375563 - (view) Author: Irit Katriel (iritkatriel) * (Python committer) Date: 2020-08-17 18:29
Probably another example: issue41567
History
Date User Action Args
2022-04-11 14:59:31adminsetgithub: 84992
2020-10-20 11:16:26iritkatriellinkissue40860 superseder
2020-08-17 18:29:13iritkatrielsetmessages: + msg375563
2020-08-10 08:45:09iritkatrielsetnosy: + iritkatriel
messages: + msg375103
2020-05-29 13:32:00alan.briolatsetnosy: + alan.briolat
2020-05-29 13:25:00bjscreate