From owner-freebsd-questions@FreeBSD.ORG Thu Jan 10 02:46:12 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 67E6616A476 for ; Thu, 10 Jan 2008 02:46:12 +0000 (UTC) (envelope-from msoulier@digitaltorque.ca) Received: from mail.storm.ca (mail.storm.ca [209.87.239.66]) by mx1.freebsd.org (Postfix) with ESMTP id 21D5213C4FD for ; Thu, 10 Jan 2008 02:46:12 +0000 (UTC) (envelope-from msoulier@digitaltorque.ca) Received: from kanga.digitaltorque.ca (hs-216-106-102-70.storm.ca [216.106.102.70]) by mail.storm.ca (8.14.0+Sun/8.14.0) with ESMTP id m0A2jtaH020180; Wed, 9 Jan 2008 21:46:05 -0500 (EST) Received: from piglet (unknown [192.168.1.5]) by kanga.digitaltorque.ca (Postfix) with ESMTP id 77ED16; Wed, 9 Jan 2008 21:46:12 -0500 (EST) Received: by piglet (Postfix, from userid 1000) id 6796318C55B; Wed, 9 Jan 2008 21:46:12 -0500 (EST) Date: Wed, 9 Jan 2008 21:46:12 -0500 From: "Michael P. Soulier" To: Danny Pansters Message-ID: <20080110024612.GE6375@piglet.digitaltorque.ca> Mail-Followup-To: Danny Pansters , freebsd-questions@freebsd.org, Gunther Mayer References: <47851504.8090006@gmail.com> <200801100202.17511.danny@ricin.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="jy6Sn24JjFx/iggw" Content-Disposition: inline In-Reply-To: <200801100202.17511.danny@ricin.com> User-Agent: Mutt/1.5.13 (2006-08-11) Cc: Gunther Mayer , freebsd-questions@freebsd.org Subject: Re: Python threading - some ports depend on it, others break with it X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jan 2008 02:46:12 -0000 --jy6Sn24JjFx/iggw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 10/01/08 Danny Pansters said: > It's my understanding that threading *in* python works well, but threadin= g=20 > *with* python doesn't and you shouldn't use/rely on it. I'm afraid I can'= t=20 > tell you much more without an hour of googling and I wouldn't be sure if = I=20 > can adequately explain after. I think it has to do with the GIL. >=20 > I suggest to ask at freebsd-python@freebsd.org. Threading in Python works fine in my experience, even using native threads.= It is not very efficient on multi-core systems though, due to the GIL (global interpreter lock).=20 Mike --=20 Michael P. Soulier "Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction." --Albert Einstein --jy6Sn24JjFx/iggw Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFHhYb0KGqCc1vIvggRAo6qAKCrxru0CrjaWA+XNsjfp5cm2q9CogCffcuU hcgtY3mGdwcsMU+SXfHc7ZY= =x6Uv -----END PGP SIGNATURE----- --jy6Sn24JjFx/iggw--