Let’s find out what are the ways to create ThreadPool using the Executor framework in java and use result-bearing tasks using Callable and Future
Java Thread Programming (Part 11)
Learn how to ask the executor framework at startup to provision threads for us and they will be reused as long as the application runs.
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 …
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 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.