Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #45588

Re: Please help with Threading

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!eternal-september.org!feeder.eternal-september.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <fabiosantosart@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.013
X-Spam-Evidence '*H*': 0.97; '*S*': 0.00; 'context': 0.07; 'nested': 0.07; 'subject:help': 0.08; '(instead': 0.09; 'cc:addr:python- list': 0.11; 'python': 0.11; 'thread': 0.14; 'times,': 0.14; 'loops': 0.16; 'numpy': 0.16; 'wrote:': 0.18; 'cc:addr:python.org': 0.22; 'fine': 0.24; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; '&gt;': 0.26; 'pass': 0.26; 'header:In- Reply-To:1': 0.27; 'array': 0.29; 'message-id:@mail.gmail.com': 0.30; 'code': 0.31; 'complete,': 0.31; 'another': 0.32; 'problem': 0.35; 'subject:with': 0.35; 'something': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'doing': 0.36; 'should': 0.36; 'manager': 0.38; 'either': 0.39; 'free': 0.61; 'devices': 0.61; 'nobody': 0.68; 'intelligent': 0.74; '(while': 0.84; '2013': 0.98
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=xKIp+6GrXik1+7VBeBO/2iMiXpNoKo9d6pEV5wN95iQ=; b=ce0h6+ZSjCGG4XBHvLB8vnae7BFM3mq6Jl+QfwoozdoaZMshITZJVedxTlrg2WpP92 vtud9ost0JO5jY4xuaGNYHpPMKISzkkgcRwbZ7b/FpFGolMSDHrS5Ck49kajkKhVj/M2 vbN1NlVN/vzxfYgBI0uSt1ygO2KrVlOssOneigwsRjejbwIeET3BQrPjt/hYFoHsWAeI INZU4Noh0jNL2dtRbUy1eTMd6n3a1XiiQNIhIx/HhkAq1vnjCt6bpieIE0PPDEVDO4DV bRuWKoODPDb/7jvSxbLWmvnGoahtGY2cgCsYh7xjbwFBk1Uysc88vmBPzUVlYX8othpc e+GA==
MIME-Version 1.0
X-Received by 10.49.26.198 with SMTP id n6mr22914400qeg.16.1369031117852; Sun, 19 May 2013 23:25:17 -0700 (PDT)
In-Reply-To <13lfp8lds6e2e41rtsnvqimcb6inu7p28o@invalid.netcom.com>
References <7baacf5a-0c50-4935-ad5b-148c208d759b@googlegroups.com> <13lfp8lds6e2e41rtsnvqimcb6inu7p28o@invalid.netcom.com>
Date Mon, 20 May 2013 07:25:17 +0100
Subject Re: Please help with Threading
From Fábio Santos <fabiosantosart@gmail.com>
To Dennis Lee Bieber <wlfraed@ix.netcom.com>
Content-Type multipart/alternative; boundary=047d7b677304778a8c04dd206578
Cc python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1861.1369031126.3114.python-list@python.org> (permalink)
Lines 41
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1369031126 news.xs4all.nl 15981 [2001:888:2000:d::a6]:35787
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:45588

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

On 18 May 2013 20:33, "Dennis Lee Bieber" <wlfraed@ix.netcom.com> wrote:
>         Python threads work fine if the threads either rely on intelligent
> DLLs for number crunching (instead of doing nested Python loops to
> process a numeric array you pass it to something like NumPy which
> releases the GIL while crunching a copy of the array) or they do lots of
> I/O and have to wait for I/O devices (while one thread is waiting for
> the write/read operation to complete, another thread can do some number
> crunching).

Has nobody thought of a context manager to allow a part of your code to
free up the GIL? I think the GIL is not inherently bad, but if it poses a
problem at times, there should be a way to get it out of your... Way.

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Please help with Threading Jurgens de Bruin <debruinjj@gmail.com> - 2013-05-18 01:58 -0700
  Re: Please help with Threading Peter Otten <__peter__@web.de> - 2013-05-18 11:09 +0200
    Re: Please help with Threading Jurgens de Bruin <debruinjj@gmail.com> - 2013-05-18 04:23 -0700
      Re: Please help with Threading Peter Otten <__peter__@web.de> - 2013-05-18 14:01 +0200
  Re: Please help with Threading Dave Angel <davea@davea.name> - 2013-05-18 09:55 -0400
  Re: Please help with Threading Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-05-18 15:28 -0400
  RE: Please help with Threading Carlos Nepomuceno <carlosnepomuceno@outlook.com> - 2013-05-19 03:02 +0300
  Re: Please help with Threading Chris Angelico <rosuav@gmail.com> - 2013-05-19 10:38 +1000
  Re: Please help with Threading Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-05-19 17:46 -0400
  Re: Please help with Threading Chris Angelico <rosuav@gmail.com> - 2013-05-20 07:52 +1000
  Re: Please help with Threading Dave Angel <davea@davea.name> - 2013-05-19 21:04 -0400
  Re: Please help with Threading Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-05-19 22:58 -0400
  Re: Please help with Threading Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-05-19 23:25 -0400
  Re: Please help with Threading Fábio Santos <fabiosantosart@gmail.com> - 2013-05-20 07:25 +0100
  Re: Please help with Threading Jurgens de Bruin <debruinjj@gmail.com> - 2013-06-02 18:47 -0700

csiph-web