Interview Question in Java


 

Interview Question :: How would you implement a thread pool?

 How would you implement a thread pool?

by ksk
VoteNowAnswers to "How would you implement a thread pool?"

 The ThreadPool class is a generic implementation of a thread pool, which takes the following input Size of the pool to be constructed and name of the class which implements Runnable (which has a visible default constructor) and constructs a thread pool with active threads that are waiting for activation. once the threads have finished processing they come back and wait once again in the pool.

by ksk