Concurrency
-
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 » -
Core Java
Devoxx 2012: Java 8 Lambda and Parallelism, Part 1
Overview Devoxx, the biggest vendor-independent Java conference in the world, took place in Atwerp, Belgium on 12 – 16 November.…
Read More » -
Scala
Parallelization of a simple use case explained
Some time ago a friend of mine asked me about the possibilities of speeding up the following process: they are…
Read More » -
Core Java
Investigating Deadlocks – Part 5: Using Explicit Locking
In my last blog I looked at fixing my broken, deadlocking balance transfer sample code using both Java’s traditional synchronized keyword…
Read More »