Thread Lock classes

Since now we have some idea on locks and how threads use them for execution, Let’s look into some classes which further helps us in our use cases. ReentrantLock class: In addition to lock functionality, this class provide few more utility methods which help us in our user cases. tryLock() method: This method returns boolean […]

Thread Lock classes Read More »

Create Threads in Java

Multithreading can be viewed as a digital world’s term for multi-tasking. When someone say they are multitasking, they are performing multiple different tasks within a timeframe. Even though it is an advanced topic, its use can be observed in our day-to-day basic tasks – Multi-tasking in Java can be achieved using Threads and thus the

Create Threads in Java Read More »