Thread Local Class in Java

The ThreadLocal class in Java provides a local variable for Threads. ThreadLocal class maintains values per Thread basis. Each Thread …

Read more

Callable and Future in Java

If a Thread require to return something after execution Callable interface. Callable interface contain only one method. If a Callable …

Read more

Thread Pool in Java

Creating a new Thread for every Job in Java may cause performance and memory-related problems. To overcome these problems we …

Read more

Reentrant Lock in Java

Reentrant lock in Java is the implementation class of the Lock interface. Reentrant means a thread can acquire the same …

Read more

lock Interface in Java

lock object is similar to an implicit lock acquired by a thread to execute a synchronized method or Synchronized block. …

Read more

ThreadGroup methods in Java

Following are the methods available in ThreadGroup in Java. String getName() This method returns the name of the Thread group. …

Read more

Thread Group in Java

In Java based on functionalities, we can group threads into a single unit which is known as Thread group that …

Read more