On Sep 13, 2019, at 09:31, Vinay Sharma via Python-ideas 
<python-ideas@python.org> wrote:
> 
> multiprocessing.Value can be synchronised using a lock, but if I have 
> multiple multiprocessing.Value(s) which I want to synchronise between two 
> processes, then I will have to pass a lock for each multiprocessing.Value.

This isn’t true. You can use the same lock for all of your values. Or you can 
not pass a lock explicitly and let the mp library create them so you don’t have 
to worry about it at all.
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/SEQ6ZBONZM5TJW6JRAL6ARVBCAZ35BK7/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to