summaryrefslogtreecommitdiff
path: root/Doc/library/threading.rst
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-02-28 22:04:51 +0000
committerAntoine Pitrou <solipsis@pitrou.net>2011-02-28 22:04:51 +0000
commit01951647e4c5d7c48d8709bbef63cc0e60e04ffd (patch)
tree78b1108f45a52218af587a362836141b7b90f998 /Doc/library/threading.rst
parente201c09e6a012f94a4676963006084241418b5e1 (diff)
downloadcpython-01951647e4c5d7c48d8709bbef63cc0e60e04ffd.tar.gz
No need to put this at top
Diffstat (limited to 'Doc/library/threading.rst')
-rw-r--r--Doc/library/threading.rst23
1 files changed, 12 insertions, 11 deletions
diff --git a/Doc/library/threading.rst b/Doc/library/threading.rst
index 7d192b5f09..df47045ffb 100644
--- a/Doc/library/threading.rst
+++ b/Doc/library/threading.rst
@@ -20,17 +20,6 @@ The :mod:`dummy_threading` module is provided for situations where
methods and functions in this module in the Python 2.x series are still
supported by this module.
-.. impl-detail::
-
- Due to the :term:`Global Interpreter Lock`, in CPython only one thread
- can execute Python code at once (even though certain performance-oriented
- libraries might overcome this limitation).
- If you want your application to make better of use of the computational
- resources of multi-core machines, you are advised to use
- :mod:`multiprocessing` or :class:`concurrent.futures.ProcessPoolExecutor`.
- However, threading is still an appropriate model if you want to run
- multiple I/O-bound tasks simultaneously.
-
This module defines the following functions and objects:
@@ -374,6 +363,18 @@ impossible to detect the termination of alien threads.
property instead.
+.. impl-detail::
+
+ Due to the :term:`Global Interpreter Lock`, in CPython only one thread
+ can execute Python code at once (even though certain performance-oriented
+ libraries might overcome this limitation).
+ If you want your application to make better of use of the computational
+ resources of multi-core machines, you are advised to use
+ :mod:`multiprocessing` or :class:`concurrent.futures.ProcessPoolExecutor`.
+ However, threading is still an appropriate model if you want to run
+ multiple I/O-bound tasks simultaneously.
+
+
.. _lock-objects:
Lock Objects