Concurrency
-
Core Java
How is ThreadLocal implemented?
This is a follow-up to my last week post, where I explained the motivation behind ThreadLocal usage. From the post…
Read More » -
Core Java
What are Reentrant Locks?
In Java 5.0 a new addition was made to enhance the intrinsic locking capabilities, called as Reentrant Lock. Prior to…
Read More » -
Core Java
When and how to use a ThreadLocal
As our readers might already have guessed, I deal with memory leaks on a daily basis. A particular type of…
Read More » -
Core Java
Non-Blocking Asynchronous Java 8 and Scala’s Try/Success/Failure
Inspired by a recent newsletter from Heinz Kabutz as well as Scala’s Futures which I investigated in my recent book,…
Read More » -
Core Java
Ahoy There Callbacks!
Because it’s my bag, I like JavaScript. In fact, I’ve grown to love JavaScritp’s asynchronous callback oriented style of programming.…
Read More » -
Core Java
Fine-Grained Concurrency with the Guava Striped Class
This post is going to cover how to use the Striped class from Guava to achieve finer-grained concurrency. The ConcurrentHashMap…
Read More » -
Core Java
Scalable Counters For Multi Core
Counters are required everywhere , for e.g. to find key KPI of application, load on application, total number of request…
Read More » -
Core Java
Simple and lightweight pool implementation
Object pools are containers which contain a specified amount of objects. When an object is taken from the pool, it…
Read More » -
Core Java
5 Things You Didn’t Know About Synchronization in Java and Scala
Practically all server applications require some sort of synchronization between multiple threads. Most of the synchronization work is done for…
Read More »