Python.org
discuss.python.org › ideas
Graceful exit from ThreadPoolExecutor when blocked on IO - problem and possible enhancement - Ideas - Discussions on Python.org
February 11, 2025 - (This is my first post here so apologies if it’s pitched wrong.) I think something is missing from ThreadPoolExecutor, or perhaps its documentation. I have a program doing essentially the example in documentation, but wrapped in a long-running loop that polls for a list of URLs to fetch and ...
Python.org
discuss.python.org › python help
ThreadPoolExecutor.map with buffersize returns truncated iterable under certain circumstances - Python Help - Discussions on Python.org
October 15, 2025 - Hi folks! I am wondering why my first example of ThreadPoolExecutor(max_workers=10).map(fn, iterable, buffersize=20) returns only 20 mapped items of 100. Using CPython 3.14.0. Looking at the implementation of map() the…
Videos
How To Use ThreadPoolExecutor and ProcessPoolExecutor ...
03:35
Concurrent Python Programming using a ThreadPoolExecutor - YouTube
10:56
Python Concurrent Futures - ThreadPoolExecutor & ProcessPoolExecutor ...
MultiThreading in Python | Python Concurrent futures ...
11:52
Parallel Execution in Python - ThreadPoolExecutor - YouTube
10:56
Python Concurrent Futures - ThreadPoolExecutor ...
LinkedIn
linkedin.com › pulse › parallel-processing-python-threadpoolexecutor-sreedeep-surendran-hsbhc
Parallel Processing in Python with ThreadPoolExecutor
We cannot provide a description for this page right now
Krython
krython.com › tutorial › python › thread-pools-concurrent-futures
📘 Thread Pools: concurrent.futures - Tutorial | Krython
July 7, 2025 - from concurrent.futures import ThreadPoolExecutor, as_completed import time # 🎯 Basic thread pool usage def process_item(item): """Simulate some work""" time.sleep(1) # 😴 Pretend we're doing something return f"Processed {item}! ✅" # Create and use a thread pool with ThreadPoolExecutor(max_workers=3) as executor: # 🚀 Submit tasks items = ['apple', 'banana', 'cherry'] futures = [executor.submit(process_item, item) for item in items] # 📊 Get results as they complete for future in as_completed(futures): result = future.result() print(result)
Python Tutorial
pythontutorial.net › home › python concurrency › python threadpoolexecutor
Python ThreadPoolExecutor By Practical Examples
July 15, 2022 - Use ThreadPoolExecutor class to manage a thread pool in Python.
Naukri
naukri.com › code360 › library › how-to-use-threadpoolexecutor-in-python3
How to use ThreadPoolExecutor in Python3
Almost there... just a few more seconds
TutorialsPoint
tutorialspoint.com › concurrency_in_python › concurrency_in_python_pool_of_processes.htm
Concurrency in Python - Pool of Processes
We need to choose ProcessPoolExecutor in case of CPU-bound workloads and ThreadPoolExecutor in case of I/O-bound workloads. If we use ProcessPoolExecutor, then we do not need to worry about GIL because it uses multiprocessing. Moreover, the execution time will be less when compared to ThreadPoolExecution. Consider the following Python script example to understand this.
Hacker News
news.ycombinator.com › item
Python's threadpoolexecutor is still single OS-threaded. There will only ever be... | Hacker News
May 25, 2020 - Multi-process code can, of course, address some of these issues, but it comes at the cost of spinning up multiple OS processes and costly inter-process communication etc · For one, regardless of the GIL it is still possible to have races in multithreaded python code.
GitConnected
levelup.gitconnected.com › understanding-pythons-threadpoolexecutor-futures-and-concurrency-genai-use-case-for-multiple-c28251ae9edf
Understanding Python’s ThreadPoolExecutor, Futures, and Concurrency: GenAI Use Case for Multiple Document Processing | by Amit Chauhan | Level Up Coding
January 7, 2025 - Understanding Python’s ThreadPoolExecutor, Futures, and Concurrency: GenAI Use Case for Multiple Document Processing Perform multiple tasks in parallel. In this article, we will discuss processing …
Python.org
discuss.python.org › python help
Concurrent usage of concurrent.futures.ThreadPoolExecutor - Python Help - Discussions on Python.org
December 8, 2023 - Is concurrent.futures.ThreadPoolExecutor safe to use concurrently? I seem to run into a deadlock when I have a concurrent.futures.ThreadPoolExecutor.map call when the function being mapped submits additional tasks to th…
Medium
medium.com › towardsdev › whats-the-best-way-to-handle-concurrency-in-python-threadpoolexecutor-or-asyncio-85da1be58557
What’s the Best Way to Handle Concurrency in Python: ThreadPoolExecutor or asyncio? | by Soumit Salman Rahman | Towards Dev
July 28, 2025 - It is designed primarily for I/O-bound tasks. It functions differently from ThreadPoolExecutor. Unlike ThreadPoolExecutor, it runs everything within one thread so there is no thread creation and cleanup overhead.