Java Thread Programming (Part 10)

Let’s learn about BlockingQueue, one of the essential concurrent collections available in the concurrent package in the JDK.

Java Thread Programming (Part 9)

Let’s continue the discussion and share a few more thread-safe classes that we can use in our day-to-day coding!

Java Thread Programming (Part 8)

The term thread safety is a frequently and commonly pronounced word among Java developers. However, it is still one of the misunderstood terms as well. In this article, I will try to explain in a very simplified way what it is and how we can achieve it while we write our day-to-day code. The idea … Read more

Java Thread Programming (Part 7)

Can we create as many Java threads as we want? I will try to come up with an answer via an exercise, so bear with me!

Java Thread Programming (Part 6)

Have you ever wondered what is the purpose of the “wait()”, “notify()”, “notifyAll()” methods that come with each Java object?

Java Thread Programming (Part 4)

We need to be very careful when using the “volatile” keyword, and we should use it only where it’s required, and definitely not everywhere.

Java Thread Programming (Part 3)

Tip: We can only ask the Java thread to execute a piece of code, but we cannot guarantee the execution order of multiple threads!

Java Thread Programming (Part 2)

Let’s see an example of where we can use Threads. Let’s assume we are building a web server that returns the most used words in a website.