How to synchronize a python dict with multiprocessing
Posted
by Peter Smit
on Stack Overflow
See other posts from Stack Overflow
or by Peter Smit
Published on 2010-03-30T14:26:33Z
Indexed on
2010/03/30
14:53 UTC
Read the original article
Hit count: 648
I am using Python 2.6 and the multiprocessing module for multi-threading. Now I would like to have a synchronized dict (where the only atomic operation I really need is the += operator on a value).
Should I wrap the dict with a multiprocessing.sharedctypes.synchronized() call? Or is another way the way to go?
© Stack Overflow or respective owner