Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4.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.037 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.01; 'yet.': 0.04; 'level,': 0.07; 'subject:help': 0.08; 'cc:addr:python-list': 0.11; 'python': 0.11; 'objects?': 0.16; 'stuff.': 0.16; 'threads.': 0.16; 'wrote:': 0.18; 'memory': 0.22; 'cc:addr:python.org': 0.22; 'creating': 0.23; 'manager.': 0.24; 'visible': 0.24; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; '>': 0.26; 'gets': 0.27; 'header:In-Reply-To:1': 0.27; 'function': 0.29; 'message- id:@mail.gmail.com': 0.30; 'that.': 0.31; 'subject:with': 0.35; 'common': 0.35; 'received:google.com': 0.35; "didn't": 0.36; 'does': 0.39; 'deleting': 0.60; 'making': 0.63; 'more': 0.64; 'lowest': 0.74; 'calls,': 0.84; 'locked': 0.84; '\xa0at': 0.84; 'obvious,': 0.91; '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=TKhBq80xhGfT6NEJ7dRl1ahI2A48McMdNo9I2K0dTNM=; b=WfkhEgFrS/H/J2Ga1c3VdyGGRUF2ClL6wANwxinaBI+Z7+tEAeCboXxzG7sxoMIotW mmd5gqPDnSmFm7FkbPBMDFtwyGJ3XNu/O3YFWDBMFdUVrlFYrgVKWW0rXQiKbu1M+fSr GR2lg3Be3vKvTwHoLJjurGrKK3NUSGdfLHDu+SATEhmFkfpo8ZdQIXFbCqVb3cDKjffb MkUmfwe0OFvn1OGupSH5TBPtbUZ3xsrdTTT8HyJ2aBCMXf2jRsR7Rl9tOdKeoRCqa92e GR78JzbRGZHy/F+VyBkRyZOt5TTZuaL3V2XqY4RHSto9SECY45A4JeyMImz0ddzkv6ns 9aMQ== MIME-Version: 1.0 X-Received: by 10.229.13.205 with SMTP id d13mr11194376qca.118.1369073091067; Mon, 20 May 2013 11:04:51 -0700 (PDT) In-Reply-To: <519A039C.5040606@davea.name> References: <20130520074514.GA33353@cskk.homeip.net> <519A039C.5040606@davea.name> Date: Mon, 20 May 2013 19:04:50 +0100 Subject: Re: Please help with Threading From: =?ISO-8859-1?Q?F=E1bio_Santos?= To: Dave Angel Content-Type: multipart/alternative; boundary=0015175743bc43e73304dd2a2b1b 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 37 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1369073094 news.xs4all.nl 15976 [2001:888:2000:d::a6]:43205 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:45629 --0015175743bc43e73304dd2a2b1b Content-Type: text/plain; charset=ISO-8859-1 I didn't know that. On 20 May 2013 12:10, "Dave Angel" wrote: > Are you making function calls, using system libraries, or creating or deleting any objects? All of these use the GIL because they use common data structures shared among all threads. At the lowest level, creating an object requires locked access to the memory manager. > > > Don't forget, the GIL gets used much more for Python internals than it does for the visible stuff. I did not know that. It's both interesting and somehow obvious, although I didn't know it yet. --0015175743bc43e73304dd2a2b1b Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

I didn't know that.
On 20 May 2013 12:10, "Dave Angel" <davea@davea.name> wrote:
> Are you making function calls, using system libraries, or creating or = deleting any objects? =A0All of these use the GIL because they use common d= ata structures shared among all threads. =A0At the lowest level, creating a= n object requires locked access to the memory manager.
>
>
> Don't forget, the GIL gets used much more for Python internals tha= n it does for the visible stuff.

I did not know that. It's both interesting and somehow o= bvious, although I didn't know it yet.

--0015175743bc43e73304dd2a2b1b--