On Sep 13, 2019, at 09:31, Vinay Sharma via Python-ideas <[email protected]> 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 -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/SEQ6ZBONZM5TJW6JRAL6ARVBCAZ35BK7/ Code of Conduct: http://python.org/psf/codeofconduct/
