I want to learn to use multiprocessing.Manager
. I looked at the documentation but it's not easy enough for me. Anyone knows of a good tutorial or something like that?
-
Hm, from a first glance, the documentation of multiprocessing.Manager seems decent:
Managers provide a way to create data which can be shared between different processes. A manager object controls a server process which manages shared objects. Other processes can access the shared objects by using proxies. [and so on]
Manager objects allow you to create variables shared in multiple processes. What is it that you exactly want to achieve? Maybe a request for an example would help?
Jarret Hardie : I also think the standard docs are quite illustrative, but isn't a tutorial, like he's seeking, basically a request for an example? :-)cool-RR : Well, I think that in the Pycon talk it was said that Managers can manage pools for you, also on remote computers. So I'd like a gentle introduction to that, if one exists. -
This page has some great multiprocessing examples, including examples of how to use Manager. I found it really helpful in wrapping my head around multiprocessing.
Cheers, Noah
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.