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

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

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

How to Stop a Thread

We can stop a Thread execution by using stop() method of Thread Class. If we call stop() then immediatly the …

Read more