Tag Archives: ThreadPoolExecutor

Concurrency in Python

By | January 18, 2024

In Python, there are several ways to implement concurrency, allowing you to execute multiple tasks concurrently to improve the performance of your code. Here are some commonly used methods: Threading: Multiprocessing: Asyncio (asynchronous I/O): ThreadPoolExecutor and ProcessPoolExecutor: Choose the concurrency approach that best fits your specific use case, considering factors such as the nature of… Read More »

Downloading Multiple files(Images etc..) in Android Simultaneously/or in Batches in Android using ThreadPoolExecutor.

By | June 10, 2016

CPUs with multiple cores have almost become the standard in Android devices. This means multiple operations doesn’t have to wait to be executed on a single thread. They can rather run on multiple threads in parallel where each threads gets executed on a single processor. For example imagine an operation where multiple images have to… Read More »