Concurrency
-
Core Java

Asynchronous timeouts with CompletableFuture
One day I was rewriting poorly implemented multi-threaded code that was blocking at some point on Future.get(): …
Read More » -
Core Java

Playing With Java Concurrency
Recently I needed to transform some filet that each has a list (array) of objects in JSON format to files…
Read More » -
Core Java

Thread local storage in Java
One of the rarely known features among developers is Thread-local storage. The idea is simple and need for it comes…
Read More » -
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 »
