Concurrency
-
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 » -
Core Java
Investigating Deadlocks – Part 4: Fixing the Code
In the last in this short series of blogs in which I’ve been talking about analysing deadlocks, I’m going to…
Read More » -
Core Java
Investigating Deadlocks – Part 3
In my previous two blogs in this series, part 1 and part 2, I’ve demonstrated how to create a piece…
Read More »