Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

Thanks for the nice example I have a question. What is the use of passing 3 as an argument while creating an object of MyMonitorThread ?
- Rahul
Hi, Your artcile is very good, but I struggle whenever I am asked to develop new Programming codes like if something is given in Socket or Thread…(i.e)different from the usual ones…can you please tell me which books to refer, Can you please give a list of them
- Brindha
Hi Pankaj, Thank you for such a beautiful article on one of the most complex topic in java. Can you please elaborate the exact diffrence between shutdown() and shutdownow() api, as the javadoc is not very clear on the shutdownnow()
- HIMANSU NAYAK
Hi Pankaj, I have few doubts on this WorkerPool.java example 1. In WorkerPool.java example you have use ThreadFactory interface, but ThreadPoolExecutor uses the defaultThreadFactory() internally in case if it is not passed during creation, then what is the purpose of explicitly doing it in the example? 2. “So if there are 4 running tasks and more tasks are submitted, the work queue will hold only 2 of them and rest of them will be handled by RejectedExecutionHandlerImpl” - if we haven’t implemented RejectionExecutionHandler interface then all the task would be in the queue for the execution without getting rejected?
- HIMANSU NAYAK
Thanks for the great article Pankaj. I had a simple doubt and the first line of the cleared it. You and Jacob Jenkov provide best material for clearing concurrency concepts
- Varun