Shared Semaphores for synchronisation across unrelated processes
Hi, Python has integrated shared memory into standard library starting from 3.8 (https://docs.python.org/3/library/multiprocessing.shared_memory.html https://docs.python.org/3/library/multiprocessing.shared_memory.html), which provides a user friendly API to access shared memory across unrelated processes using names. But, there are no synchronisation mechanisms present in the standard library to prevent race conditions when shared memory is accessed across unrelated processes. I had earlier created an enhancement issue https://bugs.python.org/issue38035 at bugs.python.org http://bug.python.org/, which contains more detailed discussion on the same. I am posting this here after a suggestion from a Python contributor. Feedback on the same will be very helpful.
participants (4)
-
Barry Scott
-
Jonathan Fine
-
Rhodri James
-
Vinay Sharma