List/Grid Tag Archives: Concurrency

Does Immutability really means Thread Safety?
I have often read articles telling “If an object is immutable, it is thread safe”. Actually, I have never found an article that convinces me that immutable means thread safety. ...

A Generic and Concurrent Object Pool
In this post we will take a look at how we can create an object pool in Java. In recent years, the performance of the JVM has multiplied manifold that object pooling for better performance ...

Project Lambda: To Multicore and Beyond
The presentation “Project Lambda: To Multicore and Beyond” (Session 27400 and not to be confused with Brian Goetz’s presentation of the same name) was given in the ...

What makes parallel programming hard?
Multi-cores are here, and they are here to stay. Industry trends show that each individual core is likely to become smaller and slower (see my post to understand the reason). Improving ...

Java Executor Service Types
ExecutorService feature was come with Java 5. It extends Executor interface and provides thread pool feature to execute asynchronous short tasks. There are five ways to execute ...

Native vs Green threads
Native vs Green threads Understanding a multi-threaded program have always been a wild goose chase for many programmers. There are always many aspects to consider when writing ...

Concurrency – Sequential and Raw Thread
I worked on a project a while back, where the report flow was along these lines:User would request for a report The report request would be translated into smaller ...

Concurrency – Executors and Spring Integration
Thread Pool/Executors Based Implementation A better approach than the raw thread version, is a Thread pool based one, where an appropriate thread pool size is defined based on the system ...

Java concurrency – Feedback from tasks
Picking up from where I left off in my last post about the java.util.concurrent package, it’s interesting and sometimes mandatory to get feedback from concurrent tasks after they ...


