Java Thread Programming (Part 13)
What is the maximum number of worker threads we can put in a ThreadPool? Let's find out today on Foojay's amazing Java threading series!
315 articles in this category · 2,542,493 views.
RSS feed
A N M Bazlur Rahman
6,844 viewsWhat is the maximum number of worker threads we can put in a ThreadPool? Let's find out today on Foojay's amazing Java threading series!

A N M Bazlur Rahman
6,256 viewsLet's find out what are the ways to create ThreadPool using Executor framework in java and use result-bearing tasks using Callable and …

A N M Bazlur Rahman
4,718 viewsLearn how to ask the executor framework at startup to provision threads for us and they will be reused as long as the application runs.

Deepu K Sasidharan
3,780 viewsPattern matching is a language feature where you can test for a specific pattern on a character sequence or a data structure.
A N M Bazlur Rahman
3,622 viewsLet's learn about BlockingQueue, one of the essential concurrent collections available in the concurrent package in the JDK.
Wim Deblauwe
5,587 viewsI always struggled with how to implement equals and hashcode, until I learned about the difference between entities and value objects!

A N M Bazlur Rahman
5,190 viewsHave you ever wondered what is the purpose of the "wait()", "notify()", "notifyAll()" methods that come with each Java object?
A N M Bazlur Rahman
4,007 viewsOptional is a mystery box, a wrapping paper: it may not contain value. When we specify that in a signature, we assume the box might be …

A N M Bazlur Rahman
5,255 viewsWhen a thread acquires a lock object, no other thread will be able to use it. Once a thread unlocks the lock, other threads acquire it …
A N M Bazlur Rahman
6,571 viewsWe need to be very careful when using the "volatile" keyword, and we should use it only where it’s required, and definitely not everywhere.