Top "Executor" questions

Use for questions related to nodes that are used to actually execute a distributed job/program/application.

Java executors: how to be notified, without blocking, when a task completes?

Say I have a queue full of tasks which I need to submit to an executor service. I want them …

java callback notify executor
Any good Spring threading with a TaskExecutor examples?

I'm trying to get a handle on how to implement threading in a Java application that uses Spring for transaction …

java multithreading spring executor
Method call to Future.get() blocks. Is that really desirable?

Please read the question carefully before marking this as duplicate. Below is the snippet of the pseudo code. My question …

java multithreading asynchronous executorservice executor
How to make ThreadPoolExecutor's submit() method block if it is saturated?

I want to create a ThreadPoolExecutor such that when it has reached its maximum size and the queue is full, …

java concurrency executor
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
Java Executors: how can I set task priority?

Is there a possibility to set priority to tasks which are executed by Executors? I've found some statements in JCIP …

java multithreading concurrency executor thread-priority
When should we use Java's Thread over Executor?

Executor seems like a clean abstraction. When would you want to use Thread directly rather than rely on the more …

java multithreading concurrency executor
Elegantly implementing queue length indicators to ExecutorServices

Why, oh why doesn't java.util.concurrent provide a queue length indicators for its ExecutorServices? Recently I found myself doing …

java concurrency queue executorservice executor
Java Executor Best Practices for Tasks that Should Run Forever

I'm working on a Java project where I need to have multiple tasks running asynchronously. I'm led to believe Executor …

java executor
Removing all queued tasks of an ThreadPoolExecutor

i have this rather simple question about the ThreadPoolExecutor. I have the following situation: I have to consume objects from …

java multithreading threadpool executorservice executor