Non-blocking Algo

Pre-requisites – Multi-threading. What is blocking?Blocking algorithm allows only one thread at a time to access a shared resource in a multi-threaded environment. A resource needs to be shared among a huge number of users but only one user is allowed to use it, a user uses a thread to…

Continue reading

Singleton Design Pattern

What is Singleton’s design pattern?Singleton design pattern is a part of the creational design pattern which is used to implement the creation of a single instance in an application (per JVM). This pattern is responsible to restricts the instantiation of a class to one object only. In JDK, java.lang.Runtime is…

Continue reading