Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.019 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'complicate': 0.09; 'essentially': 0.10; '"or': 0.16; 'cc:addr:python-list': 0.16; 'mon,': 0.16; 'wrote:': 0.18; 'cc:no real name:2**0': 0.20; 'cheers,': 0.20; "aren't": 0.21; 'dec': 0.22; '(or': 0.22; 'header :In-Reply-To:1': 0.22; 'accidentally': 0.23; 'cc:2**0': 0.24; 'saying': 0.26; 'message-id:@mail.gmail.com': 0.28; 'cc:addr:python.org': 0.29; 'pm,': 0.29; 'kelly': 0.30; 'threads': 0.30; 'received:209.85.212': 0.34; 'two': 0.37; 'but': 0.37; 'run': 0.37; 'received:google.com': 0.37; 'received:209.85': 0.38; 'why': 0.39; 'received:209': 0.40; '2011': 0.61; '26,': 0.67 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=wHK8EelQB2KOJVTOm821o/an2RFeHjO93y6h93W1AgE=; b=jNrJZQMLfrFLAghJYQt7fSPg84tnbk6Hv9AV78T54GiKx3ksrTJ8IozV+yc0KXcWfb BCDzNsZKNgsV3sn+e/OLCk2//nMEY4eqHoOfAHR78ge6AVWZmmWGmTy0V4PTcZIsUG6P ePOamGr3wEUQboZ6jSWvLijWiyVQGmF2BzfXo= MIME-Version: 1.0 In-Reply-To: References: <695ebd75-e0ff-409a-9f9a-8143b78bee0a@d10g2000vbh.googlegroups.com> From: Ian Kelly Date: Mon, 26 Dec 2011 13:03:04 -0700 Subject: Re: Multithreading To: Yigit Turgut Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 1324929816 news.xs4all.nl 6915 [2001:888:2000:d::a6]:52142 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:17975 On Mon, Dec 26, 2011 at 1:01 PM, Ian Kelly wrote: > You essentially have two completely independent loops that need to run > simultaneously with different timings. =A0Sounds like a good case for > multiple threads (or processes if you prefer, but these aren: I accidentally sent before I was finished. I was saying "or processes if you prefer, but these aren't CPU-bound, so why complicate things?" Cheers, Ian