Top "Java.util.concurrent" questions

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

Memory Consistency - happens-before relationship in Java

While reading Java docs on Memory Consistency errors. I find points related to two actions that creates happen - before …

java java.util.concurrent happens-before
hidden.edu.emory.mathcs.backport*

In application thread dump I can see threadpool with five threads like following: "pool-1-thread-5" prio=10 tid=0x000000000101a000 nid=0…

java threadpool stack-trace java.util.concurrent thread-dump
Long primitive or AtomicLong for a counter?

I have a need for a counter of type long with the following requirements/facts: Incrementing the counter should take …

java performance java.util.concurrent
Per-key blocking Map in Java

I'm dealing with some third-party library code that involves creating expensive objects and caching them in a Map. The existing …

java concurrency java.util.concurrent
Is there BlockingMap as BlockingQueue in java?

I'd like to have one BlockingMap data structure which is very similar to BlockingQueue. The take method of BlockingQueue will …

java concurrency java.util.concurrent
What is the purpose of ScheduledFuture.get() method if is retrieved from the scheduleWithFixedDelay/scheduleAtFixedRate method

I am confused with the following. I know, if I use the schedule method from the ScheduledThreadPoolExecutor class: ScheduledFuture<?&…

java java.util.concurrent
Why there is no ConcurrentLinkedHashMap class in jdk?

This question follows directly from my previous question here in SO . I think the answer to my second question is …

java data-structures java.util.concurrent
MultiThreading Vs ThreadPoolExecutor

I have used multithreading in many of applications I wrote . While reading more I came across ThreadPoolExecutors. I couldn't not …

java multithreading java.util.concurrent threadpoolexecutor
What are the advantages of Lambda Expressions for multicore systems?

The Java Tutorials for Lambda Expressions says following: This section discusses features included in Project Lambda, which aims to support …

java lambda java.util.concurrent java-8