Top "Java.util.concurrent" questions

Java package which contains utility classes commonly useful in concurrent programming.

implement-your-own blocking queue in java

I know this question has been asked and answered many times before, but I just couldn't figure out a trick …

java multithreading synchronization java.util.concurrent blockingqueue
java.util.ConcurrentModificationException in Non Multithreaded Program

Hey SO Guru's im having one heck of a job with this code public void kill(double GrowthRate, int Death) { …

java multithreading collections java.util.concurrent
java.util.ConcurrentModificationException android after remove elements from array list

I have the folloing code in my android app: /** * callback executed after fetching the data. */ public void OnPointsFetch(ArrayList<…

android exception arraylist java.util.concurrent
Whether to use invokeAll or submit - java Executor service

I have a scenario where I have to execute 5 thread asynchronously for the same callable. As far as I understand, …

java concurrency executorservice java.util.concurrent
Is there java.util.concurrent equivalent for WeakHashMap?

Can the following piece of code be rewritten w/o using Collections.synchronizedMap() yet maintaining correctness at concurrency? Collections.synchronizedMap(…

java collections guava java.util.concurrent weakhashmap
Difference between Semaphore initialized with 1 and 0

Please tell what is difference Semaphore initialized with 1 and zero. as below: public static Semaphore semOne = new Semaphore(1); and public …

java java.util.concurrent
Why cannot run() of Runnable throw checked Exceptions?

According to section 6.3.2 of JCIP : Runnable is a fairly limiting abstraction; run can not return a value or throw checked …

java java.util.concurrent
Need simple explanation how "lock striping" works with ConcurrentHashMap

According to Java Concurrency in Practice, chapter 11.4.3 says: Lock splitting can sometimes be extended to partition locking on a variablesized …

java concurrency java.util.concurrent concurrenthashmap
collecting from parallel stream in java 8

I want to take an input and apply parallel stream on that, then I want output as list. Input could …

java java-8 java-stream java.util.concurrent
what's the difference between CyclicBarrier/CountDownLatch and join in Java?

what's the difference between CyclicBarrier/CountDownLatch and join in Java? What's the advantage of CyclicBarrier and CountDownLatch? In my opinion, …

java concurrency java.util.concurrent