Top "Threadpoolexecutor" questions

In Java, an ExecutorService that executes each submitted task using one of possibly several pooled threads.

Process list of 'N' items with multiple threads

I have List of N items and I want to divide this List in a sequential manner between a fixed …

java multithreading concurrency threadpoolexecutor
Connection pool is full, discarding connection with ThreadPoolExecutor and multiple headless browsers through Selenium and Python

I'm writing some automation software using selenium==3.141.0, python 3.6.7, chromedriver 2.44. Most of the the logic is ok to be executed by …

python selenium threadpool threadpoolexecutor urllib3
Cannot access database on the main thread - Android Room - Using ThreadPoolExecutor

I'm getting that famous error "Cannot access database on the main thread since it may potentially lock the UI for …

android multithreading threadpoolexecutor android-room android-thread
Which is better LinkedBlockingQueue unbounded or LinkedBlockingQueue with capacity

I am using LinkedBlockingQueue as workqueue in ThreadPoolExecutor. Problem is shall i use bounded LinkedBlockingQueue or unbounded LinkedBlockingQueue. I have …

java multithreading queue threadpoolexecutor
Android - Suspending all threads took: * ms

I'm having these warnings in my logcat even after a while that i left the application. (Didn't kill though, just …

android multithreading threadpoolexecutor android-runtime
meaning of 'core pool size' in ScheduledThreadPoolExecutor's constructor

I'm new to ScheduledThreadPoolExecutor (as I usually use the simple Timer, but people have been advising against it), and I …

java threadpool threadpoolexecutor
Do we need to shutdown ExecutorService fixedThreadPool

I have created threadpool using ExecutorService, in my application to call vendor websrvice, using below code. ExecutorService executor = Executors.newFixedThreadPool(…

java executorservice threadpoolexecutor
How to access running threads inside ThreadPoolExecutor?

I have a queue of running threads and would like to expose some of its data while it is executed, …

java multithreading threadpoolexecutor java-threads
Pre-initializing a pool of worker threads to reuse connection objects (sockets)

I need to build a pool of workers in Java where each worker has its own connected socket; when the …

java concurrency threadpool thread-local threadpoolexecutor
concurrent.futures.ThreadPoolExecutor.map is slower than a for loop

I am playing with concurrent.futures.ThreadPoolExecutor to see if I can squeeze more work out of my quad-core processor (…

python multithreading python-3.x threadpoolexecutor concurrent.futures