Concurrency
-
Core Java
Using a ThreadPoolExecutor to Parallelize Independent Single-Threaded Tasks
The task execution framework, introduced in Java SE 5.0, is a giant leap forward to simplify the design and the…
Read More » -
Core Java
Beneficial CountDownLatch and tricky java deadlock
Have you ever used java.util.concurrent.CountDownLatch? It’s a very convenience class to achieve synchronization between two or more threads, where allows…
Read More » -
Core Java
Concurrency optimization – Reduce lock granularity
Performance is very important in high load multi-threaded applications. Developers must be aware of concurrency issues in order to achieve…
Read More » -
Core Java
Java Concurrency Tutorial – CountDownLatch
Some concurrency utilities in Java naturally get more attention than others just because they serve general purpose problems instead of…
Read More » -
Core Java
Java Concurrency Tutorial – Blocking Queues
As discussed in Part 3, the thread pools introduced in Java 1.5 provided core support that was quickly a favourite…
Read More » -
Core Java
Java Concurrency Tutorial – Callable, Future
One of the beautiful things about Java from its very first release was the ease with which we could write…
Read More » -
Core Java
Java Concurrency Tutorial – Thread Pools
One of the most generally useful concurrency enhancements delivered in Java 1.5 was the introduction of customizable thread pools. These…
Read More » -
Core Java
Java Concurrency Tutorial – Reentrant Locks
Java’s synchronized keyword is a wonderful tool – it allows us a simple and reliable way to synchronize access to…
Read More » -
Core Java
Java Concurrency Tutorial – Semaphores
This is the first part in a series that we’re going to be doing on Java concurrency. Specifically, we are…
Read More »