In article <[email protected]>, Veloz <[email protected]> wrote: > >So I'm using a multiprocessing.Manager instance in my main app and >asking it to create a dictionary, which I am providing to instances of >the application that I'm forking off with Process. > >The Processes and main app will be reading/writing to the dictionary. > >It's not clear to me what I have to "lock" and what I don't have to >lock. Any ideas?
The way I deal with it is by making sure each key is only updated by a single process. -- Aahz ([email protected]) <*> http://www.pythoncraft.com/ "Many customs in this life persist because they ease friction and promote productivity as a result of universal agreement, and whether they are precisely the optimal choices is much less important." --Henry Spencer -- http://mail.python.org/mailman/listinfo/python-list
