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


Groups > comp.lang.python > #48793 > unrolled thread

Re: About GIL Questions!

Started byJoshua Landau <joshua.landau.ws@gmail.com>
First post2013-06-20 14:55 +0100
Last post2013-06-20 14:55 +0100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: About GIL Questions! Joshua Landau <joshua.landau.ws@gmail.com> - 2013-06-20 14:55 +0100

#48793 — Re: About GIL Questions!

FromJoshua Landau <joshua.landau.ws@gmail.com>
Date2013-06-20 14:55 +0100
SubjectRe: About GIL Questions!
Message-ID<mailman.3622.1371736603.3114.python-list@python.org>
On 20 June 2013 05:13, Thanatos xiao <yanxiaopei199@gmail.com> wrote:
> Hey everyone!
> Recently I see the python source code, but i still not understand about gil.
> first, why single core quicker multi-core ?

Chris Angelico touched on your other points, but not this as clearly;

Python threads run on one thread because they have to. It is not
because they're faster. Python theoretically would be faster if its
threads could run multicore, but it's really hard to make that work.

See http://pypy.org/tmdonate.html for an example of the acrobatics it
would take to get a propper GIL-free Python.

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web