Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

What is Thread Pool? How can we create Thread Pool in Java?

user-image
Question added by Mohd shahnawaz khan , Associate Project , Cognizant Technology Solution
Date Posted: 2014/02/17
Mohammed Shareefuddin
by Mohammed Shareefuddin , Project Associate , Cognizant Technology Solutions

A thread pool is a group of threads initially created that waits for jobs and executes them. The idea is to have the threads always existing, so that we won't have to pay overhead time for creating them every time. They are appropriate when we know there's a stream of jobs to process, even though there could be some time when there are no jobs.

 

Refer the below link for better understanding.

Thread POOL

More Questions Like This