Top "Executorservice" questions

ExecutorService is a Java object containing the managed pool of threads and capable of scheduling the submitted tasks for these threads.

ThreadPoolExecutor Block When Queue Is Full?

I am trying to execute lots of tasks using a ThreadPoolExecutor. Below is a hypothetical example: def workQueue = new ArrayBlockingQueue&…

java multithreading concurrency executorservice executor
Impossible to make a cached thread pool with a size limit?

It seems to be impossible to make a cached thread pool with a limit to the number of threads that …

java multithreading concurrency executorservice threadpoolexecutor
What are the advantages of using an ExecutorService?

What is the advantage of using ExecutorService over running threads passing a Runnable into the Thread constructor?

java multithreading concurrency executorservice
ExecutorService vs ThreadPoolExecutor using LinkedBlockingQueue

I am working on a multithreaded project in which I need to spawn multiple threads to measure the end to …

java multithreading executorservice blockingqueue threadpoolexecutor
What is the best way to handle an ExecutionException?

I have a method that performs some task with a timeout. I use the ExecutorServer.submit() to get a Future …

java executorservice future executionexception
Java: ExecutorService that blocks on submission after a certain queue size

I am trying to code a solution in which a single thread produces I/O-intensive tasks that can be performed …

java concurrency threadpool executorservice
How to check if all tasks running on ExecutorService are completed

I'v got ConcurrentLinkedDeque which I'm using for synchronic push/pop elements, and I'v got some async tasks which are taking …

java multithreading executorservice
Turning an ExecutorService to daemon in Java

I am using an ExecutoreService in Java 1.6, started simply by ExecutorService pool = Executors.newFixedThreadPool(THREADS). When my main thread is …

java multithreading threadpool executorservice java-threads
Java's Fork/Join vs ExecutorService - when to use which?

I just finished reading this post: What's the advantage of a Java-5 ThreadPoolExecutor over a Java-7 ForkJoinPool? and felt that …

java multithreading concurrency executorservice fork-join
Where to catch Exceptions thrown from Callable.call()

Possible Duplicate: Handling exceptions from Java ExecutorService tasks I use the ExecutorService from Java for coordinating Threads. For starting the …

java multithreading exception executorservice callable