[Pyrex] Global

Mateusz Korniak mateusz at ant.gliwice.pl
Sun Jun 27 01:23:28 CEST 2004


Interpreter Lock (GIL)
Date: Sun, 27 Jun 2004 01:29:38 +0200
User-Agent: KMail/1.6.2
MIME-Version: 1.0
Content-Disposition: inline
Content-Type: text/plain;
  charset="us-ascii"
Content-Transfer-Encoding: 7bit
Message-Id: <200406270129.38158.mateusz at ant.gliwice.pl>
Status: R
X-Status: NQ
X-KMail-EncryptionState:  
X-KMail-SignatureState:  
X-KMail-MDN-Sent:  

I have very CPUexpiensive Pythone code which I recently implemented in C++ 
using Pyrex as an excellent interface generator
.
It alreay was using threads but due to GIL there was no much gain on SMP 
machines.
I wonder if it is possible and good idea to safely release GIL while one of 
threads comes to C++ section to gain better performance ?

How to do it  properly ?

Thanks in advance,
-- 
Mateusz Korniak
"Black holes are where God divided by zero." - Steven Wright




More information about the Pyrex mailing list