From afd211347a69e4577e8dc667412be2761541d801 Mon Sep 17 00:00:00 2001 From: if-i <120784999+if-i@users.noreply.github.com> Date: Sat, 25 Oct 2025 23:52:38 +0300 Subject: [PATCH] Doc: clarify multiprocessing docs mentioning ThreadPoolExecutor (gh-140578) --- Doc/library/multiprocessing.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Doc/library/multiprocessing.rst b/Doc/library/multiprocessing.rst index d18ada3511d891..9e5af282d32130 100644 --- a/Doc/library/multiprocessing.rst +++ b/Doc/library/multiprocessing.rst @@ -30,6 +30,8 @@ distributing the input data across processes (data parallelism). The following example demonstrates the common practice of defining such functions in a module so that child processes can successfully import that module. This basic example of data parallelism using :class:`~multiprocessing.pool.Pool`, :: +Note that a similar high-level interface for thread-based parallelism is provided by the :class:`concurrent.futures.ThreadPoolExecutor` class in the :mod:`concurrent.futures` module. + from multiprocessing import Pool