[Tutor] When to use multiprocessing Managers?

James Chapman james at uplinkzero.com
Tue Feb 25 11:52:19 CET 2014


Hello tutors

I'm curious about managers and when to use them.
For example, I see they offer a Queue() for sharing a Q between
processes, but if I create a Q in the parent process and pass it down
to child processes, then they can put messages into that Q just fine,
and I presume the same thing for other objects available under the
managers package.

So unless the other process is on a different machine, is there a
reason to use a manager?

Does anyone have any use case examples or snippets I could look at even?

Thanks in advance
James


More information about the Tutor mailing list