advice on sub-classing multiprocessing.Process and multiprocessing.BaseManager

Chris Angelico rosuav at gmail.com
Mon Mar 24 20:19:56 EDT 2014


On Tue, Mar 25, 2014 at 7:24 AM, Matt Newville
<newville at cars.uchicago.edu> wrote:
> I'm maintaining a python interface to a C library for a distributed
> control system (EPICS, sort of a SCADA system) that does a large
> amount of relatively light-weight network I/O.   In order to keep many
> connections open and responsive, and to provide a simple interface,
> the python library keeps a global store of connection state.
>
> This works well for single processes and threads, but not so well for
> multiprocessing, where the global state causes trouble.

>From the sound of things, a single process is probably what you want
here. Is there something you can't handle with one process?

ChrisA



More information about the Python-list mailing list