Skip to main content
Stack Overflow
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
1 vote
1 answer
141 views

Facing below error while fetching Future object by using invokeAll Method. Iam trying to implement ExecutorService to call parallelly. ERROR>>>>>>>>>>>>>>>&...
0 votes
1 answer
340 views

I'm running into an issue where I intermittently get an java.util.ConcurrentModificationException error whilst merging the results of futures. I've tried making all my HashMaps concurrent and I tried ...
1 vote
1 answer
175 views

I'm not sure whether the title is detail/correct or not but i can't figure out how to describe it in the title so I will try my best to describe it here I've been trying to use callable in Java for ...
0 votes
0 answers
118 views

I am new trying to invoke multiple multiple threads with varied return types, using ExecutorService. I need to wait for all threads to complete, before I proceed. I am able to do it using homogeneous ...
2 votes
2 answers
600 views

I'm wondering if the main thread waits until all tasks in invokeAll() parameter finish before it continues. Here's my code and it seems that it does. public static void main(String[] args) throws ...
1 vote
2 answers
6k views

I am trying to mock the ExecutorService but it is constantly giving compile error. The code that I am trying is the following: ExecutorService executorService = mock(ExecutorService.class); Future<...
2 votes
2 answers
2k views

I am trying to learn about the ForkJoinPool framework and came across the below example: public class ArrayCounter extends RecursiveTask<Integer> { int[] array; int threshold = 100_000; int ...

AltStyle によって変換されたページ (->オリジナル) /