Java and Me

An Interesting Journey

Menu

Multithreading

Safe Singleton

In my previous article, we saw how singleton can be created. But there can be some scenarios where serialization and de-serialization of singleton object is required and that can create multiple objects of a singleton class. This can be prevented if

Rahul Kulshreshtha February 12, 2015 Multithreading 1 Comment Read more

Lazy Initialization in Multi-threaded Environment

Lazy Initialization is a way of improving performance of application. In lazy initialization objects are not initialized until they are needed. This saves the cost of creating objects and wasting memory until they are actually needed. Proxy Objects in Hibernate

Rahul Kulshreshtha February 4, 2015 Multithreading 3 Comments Read more

Livelock, Deadlock and Starvation

I was looking for a good practical\real example of Livelock and I came across a blog of “Richard”. He has shown very good examples of livelock, deadlock and starvation. I was more interested to understand livelock example. Here is the

Rahul Kulshreshtha February 3, 2015 Multithreading No Comments Read more

Categories

  • Java 9 Features
  • JUnit
  • JVM
  • Multithreading

Recent Posts

  • JVM Flags
  • JEP 102- Process API Updates
  • Safe Singleton
  • Java 9 Features
  • Lazy Initialization in Multi-threaded Environment

Recent Comments

  • Robin on JEP 102- Process API Updates
  • Rey on Lazy Initialization in Multi-threaded Environment
  • rajesh khore on JUnit Introduction
  • ig on Lazy Initialization in Multi-threaded Environment
  • Java 9 Features | Java and Me on JEP 102- Process API Updates

Archives

  • February 2015
Copyright © 2025 Java and Me. Powered by WordPress. Theme: Spacious by ThemeGrill.