Concurrency Threading Bounded Thread Pool limit max queue size of the pool with threading.BoundedSemaphore. It throws when exceeding capacity. Multiprocessing Asyncio Loop