summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2009-11-10 23:18:31 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2009-11-10 23:18:31 (GMT)
commitd42bc519d2e15d1ecca8f6fcee65113b64a4131b (patch)
treea010ba81d0048f567e33673e8f8451244e7b1d9b /Doc/whatsnew
parentaee355b7b54128ff17f8d642e3733b796e0ae7d5 (diff)
downloadcpython-d42bc519d2e15d1ecca8f6fcee65113b64a4131b.zip
cpython-d42bc519d2e15d1ecca8f6fcee65113b64a4131b.tar.gz
cpython-d42bc519d2e15d1ecca8f6fcee65113b64a4131b.tar.bz2
Add a couple of words about the new GIL implementation
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/3.2.rst21
1 files changed, 21 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.2.rst b/Doc/whatsnew/3.2.rst
index 945e4b3..a47ee99 100644
--- a/Doc/whatsnew/3.2.rst
+++ b/Doc/whatsnew/3.2.rst
@@ -85,6 +85,27 @@ New, Improved, and Deprecated Modules
(Contributed by Georg Brandl and Mattias Brändström;
`appspot issue 53094 <http://codereview.appspot.com/53094>`_.)
+Multi-threading
+===============
+
+* The mechanism for serializing execution of concurrently running Python
+ threads (generally known as the GIL or Global Interpreter Lock) has been
+ rewritten. Among the objectives were more predictable switching intervals
+ and reduced overhead due to lock contention and the number of ensuing
+ system calls. The notion of a "check interval" to allow thread switches
+ has been abandoned and replaced by an absolute duration expressed in
+ seconds. This parameter is tunable through :func:`sys.setswitchinterval()`.
+ It currently defaults to 5 milliseconds.
+
+ Additional details about the implementation can be read from a `python-dev
+ mailing-list message
+ <http://mail.python.org/pipermail/python-dev/2009-October/093321.html>`_
+ (however, "priority requests" as exposed in this message have not been
+ kept for inclusion).
+
+ (Contributed by Antoine Pitrou)
+
+
Optimizations
=============