Commit e6eb408c authored by Ezio Melotti's avatar Ezio Melotti

#16978: merge with 3.3.

parents 4cdd4c03 6d043fc7
...@@ -308,10 +308,10 @@ since it is impossible to detect the termination of alien threads. ...@@ -308,10 +308,10 @@ since it is impossible to detect the termination of alien threads.
.. impl-detail:: .. impl-detail::
Due to the :term:`Global Interpreter Lock`, in CPython only one thread In CPython, due to the :term:`Global Interpreter Lock`, only one thread
can execute Python code at once (even though certain performance-oriented can execute Python code at once (even though certain performance-oriented
libraries might overcome this limitation). libraries might overcome this limitation).
If you want your application to make better of use of the computational If you want your application to make better use of the computational
resources of multi-core machines, you are advised to use resources of multi-core machines, you are advised to use
:mod:`multiprocessing` or :class:`concurrent.futures.ProcessPoolExecutor`. :mod:`multiprocessing` or :class:`concurrent.futures.ProcessPoolExecutor`.
However, threading is still an appropriate model if you want to run However, threading is still an appropriate model if you want to run
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment