Concurrency
-
Core Java
Converting between Completablefuture and Observable
CompletableFuture<T> from Java 8 is an advanced abstraction over a promise that value of type T will be available in…
Read More » -
Core Java
ExecutorService – 10 tips and tricks
ExecutorService abstraction has been around since Java 5. We are talking about 2004 here. Just a quick reminder: both Java…
Read More » -
Core Java
100 Multithreading and Java Concurrency Interview Questions and Answers – The ULTIMATE List (PDF Download)
In this post, we feature a comprehensive article on Multithreading and Java Concurrency Interview Questions and Answers. EDITORIAL NOTE: Concurrency…
Read More » -
Core Java
Beyond Thread Pools: Java Concurrency is Not as Bad as You Think
Apache Hadoop, Apache Spark, Akka, Java 8 streams and Quasar: The classic use cases to the newest concurrency approaches for Java…
Read More » -
Core Java
How to Use Callable and FutureTask
Introduction Since Java 1.5 there has been a new set of objects under java.util.concurrent. This package has a number of…
Read More » -
Core Java
Java Concurrency Tutorial – Locking: Intrinsic locks
In previous posts we reviewed some of the main risks of sharing data between different threads (like atomicity and visibility)…
Read More » -
Enterprise Java
EJB 3.x : Lifecycle and Concurrency models (part 2)
This is the second post of the two part series. The first part covered the life cycle and the concurrency behavior…
Read More » -
Core Java
Java Concurrency Tutorial – Thread-safe designs
After reviewing what the main risks are when dealing with concurrent programs (like atomicity or visibility), we will go through…
Read More » -
Core Java
Java Concurrency Tutorial – Visibility between threads
When sharing an object’s state between different threads, other issues besides atomicity come into play. One of them is visibility.…
Read More »