Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.095 X-Spam-Evidence: '*H*': 0.81; '*S*': 0.00; 'things,': 0.09; 'cc:addr :python-list': 0.11; 'python': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'process?': 0.16; 'subject:sub': 0.16; 'threads,': 0.16; 'wrote:': 0.18; 'library': 0.18; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'sort': 0.25; 'header :In-Reply-To:1': 0.27; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; '25,': 0.31; 'probably': 0.32; 'maintaining': 0.32; 'interface': 0.32; 'open': 0.33; "can't": 0.35; 'connection': 0.35; 'something': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'interface,': 0.36; 'connections': 0.38; 'handle': 0.38; 'does': 0.39; 'simple': 0.61; 'provide': 0.64; 'relatively': 0.65; 'mar': 0.68; 'sound': 0.68; 'system)': 0.69; 'light-weight': 0.84; 'trouble.': 0.91; 'to:none': 0.92; 'state.': 0.95 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=gjTAne//N5EzNDbWwb5Leid9vb+fXwUaxbsNrkRUR7k=; b=kT1kcv8H0ZcfoDpYe5QaqKxL1oKT+vfsXPFCoo8s2hvm5w6k8IfjVh72UWv7GxKe2T ubsE2fVN1OqFNe3fonnkRSGK4rD5uKbV6cgcIgS5NYaUOGAMwofk8l7vHAVM90HvkTiQ C14FelK0TRd6QTpgNAbfjrmb7KeKRCIx00yvew1IjsZzrh5gkzT246vkIDQQOX6rGINR J8GtiVMKlb2WVHTATTZLANKcN6s0OgvYHxNm6VQkLqJMDJoP6q4jaZqdL1CpKrZE7DMf r4xX/RBRrkJVoJ9ft/2l4ifKiFioVJIUGeLqVWEWmnmDrz09oXmq77KLJ5ffLl4TV9Ny mfKA== MIME-Version: 1.0 X-Received: by 10.68.112.164 with SMTP id ir4mr6860883pbb.153.1395706796529; Mon, 24 Mar 2014 17:19:56 -0700 (PDT) In-Reply-To: References: Date: Tue, 25 Mar 2014 11:19:56 +1100 Subject: Re: advice on sub-classing multiprocessing.Process and multiprocessing.BaseManager From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 15 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1395707125 news.xs4all.nl 2977 [2001:888:2000:d::a6]:33977 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:68920 On Tue, Mar 25, 2014 at 7:24 AM, Matt Newville 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