Concurrency
-
Core Java
Throttling Task Submission with a BlockingExecutor
The JDK’s java.util.concurrent.ThreadPoolExecutor allows you to submit tasks to a thread pool and uses a BlockingQueue to hold submitted tasks.…
Read More » -
Core Java
Java final fields on x86 a no-op?
I have always enjoyed digging in to the details of multi-threaded programming, and always enjoy that despite reading for years…
Read More » -
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 »