Concurrency
-
Enterprise Java
Advanced ListenableFuture capabilities
Last time we familiarized ourselves with ListenableFuture. I promised to introduced more advanced techniques, namely transformations and chaining. Let’s start…
Read More » -
Core Java
My Custom Thread Pool Executor in Java
ThreadPoolExecutor is a feature added by java concurrent api to maintain and reuse threads efficiently , so that our programs…
Read More » -
Core Java
ListenableFuture in Guava
ListenableFuture in Guava is an attempt to define consistent API for Future objects to register completion callbacks. With the ability…
Read More » -
Enterprise Java
Implementing custom Future
Last time we learned the principles behind java.util.concurrent.Future<T>. We also discovered that Future<T> is typically returned by libraries or frameworks.…
Read More » -
Core Java
java.util.concurrent.Future basics
Hereby I am starting a series of articles about future concept in programming languages (also known as promises or delays)…
Read More » -
Core Java
Java concurrency: the hidden thread deadlocks
Most Java programmers are familiar with the Java thread deadlock concept. It essentially involves 2 threads waiting forever for each…
Read More » -
Enterprise Java
Synchronising Multithreaded Integration Tests
Testing threads is hard, very hard and this makes writing good integration tests for multithreaded systems under test… hard. This…
Read More » -
Core Java
How to shoot yourself in foot with ThreadLocals
It will start nicely. Like most of the stories. You discover a new concept and are amazed by it’s powers.…
Read More » -
Core Java
Java Thread Pool Example using Executors and ThreadPoolExecutor
A thread pool manages the pool of worker threads, it contains a queue that keeps tasks waiting to get executed.…
Read More »