LWN.net Logo

Changes ahead for Python

Changes ahead for Python

Posted Sep 15, 2007 17:51 UTC (Sat) by hazmat (subscriber, #668)
In reply to: Changes ahead for Python by gouyou
Parent article: Changes ahead for Python

cpython threads map to os level threads. however due to the gil, only one thread per process may be executing python code. python c extensions may release the gil before invoking apis, a database adapter will for example release the lock before executing a query, to allow other threads a chance to execute. the internal management of the gil allows fine tuning of how often the threads are switched via sys.checkinterval api.


(Log in to post comments)

Copyright © 2008, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds
Powered by Rackspace Managed Hosting.