Concurrency
-
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 » -
Core Java

How many threads do I need?
It depends on your application. But for those who wish to have some insight about how to squeeze out most…
Read More » -
Core Java

Java Deadlock Example – How to analyze deadlock situation
Deadlock is a programming situation where two or more threads are blocked forever, this situation arises with at least two…
Read More » -
Enterprise Java

Waiting for the right moment – in integration testing
When you have to test multi-threaded programs, there is always the need to wait until the system arrives at a…
Read More » -
Core Java

Can synchronization be optimised away?
Overview There is a common misconception that because the JIT is smart and synchronization can be eliminated for an object…
Read More »

