Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder3.xlned.com!newsfeed.xs4all.nl!newsfeed3.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.104 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.81; '*S*': 0.01; 'cc:addr:python-list': 0.11; '(via': 0.16; 'fork': 0.16; 'from:addr:pobox.com': 0.16; 'from:addr:skip': 0.16; 'sender:addr:gmail.com': 0.17; 'wrote:': 0.18; 'cc:addr:python.org': 0.22; 'skip': 0.24; 'paul': 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'fixed': 0.29; 'message-id:@mail.gmail.com': 0.30; 'sep': 0.31; 'fri,': 0.33; 'received:google.com': 0.35; 'version': 0.36; 'really': 0.36; 'pm,': 0.38; 'subject: / ': 0.60; 'truly': 0.60; 'to:addr:gmail.com': 0.65; 'here': 0.66; 'further,': 0.74; 'subject:skip:M 10': 0.84; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=NmSKhbSnGqxZTMu11ke/ulCkYx16GRzLg4kthGbQXYI=; b=KFrBFAa71m//1QqO3+MfpN32wHQCAVakRHKZU3Nel6mzf7h8gssViHTaLaRczhJKtG eg50zQxLbs1+BVBNUrr/HGroStXSJ68U9QHTO4Yh05yG0h1wHwD4In8p9CcjOAcywgY+ ociMcMyjHdIwHII76ylZJOUUU/m0Ojv5MD3rk/iJtpFQUJkCTlWxo172J2DCGH0MUeGx VMc3t55ygWaa+cXsTn2toftovMHgw3z4Khwl0HnbrxdYorqRhlm+46cgcJkYZohO7QWW 6Zmi8xDyAnClVy/BYW7TjIjni7+JjbBPug4RZxkconaRM5ey/v7d5q3xHYlIzTlXqMty OpYA== MIME-Version: 1.0 X-Received: by 10.58.155.6 with SMTP id vs6mr1429530veb.32.1378493631676; Fri, 06 Sep 2013 11:53:51 -0700 (PDT) Sender: skip.montanaro@gmail.com In-Reply-To: References: Date: Fri, 6 Sep 2013 13:53:51 -0500 X-Google-Sender-Auth: qbrZkq_I2_7DNK3f7f455ghQgQU Subject: Re: Multiprocessing / threading confusion From: Skip Montanaro To: Paul Pittlerson Content-Type: text/plain; charset=UTF-8 Cc: Python 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: 10 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1378493640 news.xs4all.nl 15977 [2001:888:2000:d::a6]:43316 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:53804 On Fri, Sep 6, 2013 at 1:27 PM, Paul Pittlerson wrote: > Ok here is the fixed and shortened version of my script: Before going any further, I think you need to return to marduk's response and consider if you really and truly need both threads and fork (via multiprocessing). http://www.linuxprogrammingblog.com/threads-and-fork-think-twice-before-using-them Skip