From 7dfa7c9bcb048857b9285a10e5b9d76b828eda17 Mon Sep 17 00:00:00 2001 From: AN Long Date: Sun, 15 Jun 2025 20:36:18 +0900 Subject: [PATCH] Clarify comments for _MAX_WINDOWS_WORKERS in concurrent.futures.process --- Lib/concurrent/futures/process.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Lib/concurrent/futures/process.py b/Lib/concurrent/futures/process.py index a14650bf5fa47c..71b109e2f738bd 100644 --- a/Lib/concurrent/futures/process.py +++ b/Lib/concurrent/futures/process.py @@ -119,10 +119,11 @@ def _python_exit(): # On Windows, WaitForMultipleObjects is used to wait for processes to finish. -# It can wait on, at most, 63 objects. There is an overhead of two objects: +# It can wait on, at most, 64 objects. There is an overhead of three objects: # - the result queue reader # - the thread wakeup reader -_MAX_WINDOWS_WORKERS = 63 - 2 +# - the SIGINT handler +_MAX_WINDOWS_WORKERS = 64 - 3 # Hack to embed stringification of remote traceback in local traceback